From f96b5ba4052c28d2bd2c03cefba3a2e828dd059d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 10 Sep 2024 11:14:43 +0100 Subject: Finish the job of the last commit --- engagements/tests/test_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engagements/tests/test_models.py') 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")]) -- cgit v1.2.3