aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/tests/test_views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyblackbird_cc/resources/tests/test_views.py')
-rw-r--r--pyblackbird_cc/resources/tests/test_views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/tests/test_views.py b/pyblackbird_cc/resources/tests/test_views.py
index e71b3a2..b961d3a 100644
--- a/pyblackbird_cc/resources/tests/test_views.py
+++ b/pyblackbird_cc/resources/tests/test_views.py
@@ -1,5 +1,6 @@
import unittest
+import pytest
from django.contrib.auth import get_user_model
from django.contrib.auth.models import User
from django.core.files.uploadedfile import SimpleUploadedFile
@@ -13,6 +14,13 @@ from ..models import ResourceType
from ..views import create_resource
+@pytest.mark.django_db()
+def test_create_featured_resource_view(resource, client):
+ url = reverse("resources:create_featured")
+ response = client.get(url)
+ assert response.status_code == 302
+
+
class PDFFileUploadTestCase(TestCase):
def setUp(self):
self.url = reverse("resources:create_resource")