summaryrefslogtreecommitdiffstats
path: root/engagements/tests/test_views.py
diff options
context:
space:
mode:
Diffstat (limited to 'engagements/tests/test_views.py')
-rw-r--r--engagements/tests/test_views.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/engagements/tests/test_views.py b/engagements/tests/test_views.py
index 4899c58..b809530 100644
--- a/engagements/tests/test_views.py
+++ b/engagements/tests/test_views.py
@@ -8,9 +8,10 @@ from django.urls import reverse
from engagements import models, views
from engagements.utils import populate_database
+pytestmark = pytest.mark.django_db
+
@pytest.fixture
-@pytest.mark.django_db
def test_data():
return populate_database()
@@ -54,6 +55,7 @@ def test_dscs_for_ep(client, test_data, request_factory):
assert si2 in response.context["dscs"]
assert si3 in response.context["dscs"]
+
@pytest.mark.django_db
def test_get_blank_form(client, test_data, request_factory):
url = reverse("engagements:effort_create", kwargs={"eid": 1, "etype": "PLANNING"})
@@ -61,4 +63,5 @@ def test_get_blank_form(client, test_data, request_factory):
request = request_factory.get(url)
request.user = test_data["superuser"]
response = views.engagement_effort_create(request, eid=1, etype="PLANNING")
- assert response.status_code == HTTPStatus.OK \ No newline at end of file
+ assert response.status_code == HTTPStatus.OK
+