summaryrefslogtreecommitdiffstats
path: root/engagements/tests/test_models.py
diff options
context:
space:
mode:
Diffstat (limited to 'engagements/tests/test_models.py')
-rw-r--r--engagements/tests/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/engagements/tests/test_models.py b/engagements/tests/test_models.py
index 9b15307..3b84ead 100644
--- a/engagements/tests/test_models.py
+++ b/engagements/tests/test_models.py
@@ -2,19 +2,19 @@ import pytest
from engagements.utils import populate_database
+pytestmark = pytest.mark.django_db
+
@pytest.fixture
def data():
return populate_database()
-@pytest.mark.django_db
def test_check_all_dcs(data):
dscs = data.get("sub_instruments")
assert dscs[0].title == "DSC 1 - Title 1"
-@pytest.mark.django_db
def test_effort_by_type(data):
e = data["engagements"][0]
total_planning = sum([x.effort_total_planned_hours() for x in e.effort.filter(effort_type="PLANNING")])