diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-22 16:39:06 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-22 16:39:19 +0100 |
commit | befd3e81321e0f5989d68a6838b4a17af51b1e64 (patch) | |
tree | bf59889e587bca347dbc3807004b19c4a69ecfb6 /pyblackbird_cc/resources/tests/test_views.py | |
parent | ff1aa3aa113e507f870eba4c96099946f154fb22 (diff) |
wip: starting to test the featured resource view
Diffstat (limited to 'pyblackbird_cc/resources/tests/test_views.py')
-rw-r--r-- | pyblackbird_cc/resources/tests/test_views.py | 8 |
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") |