summaryrefslogtreecommitdiffstats
path: root/engagements/tests/conftest.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-10 12:34:49 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-10 12:34:49 +0100
commitc4fd33fce3dbef280657c150a7658462c80da877 (patch)
treecb366d210edc4bd8d40ea8e6f3af3e1cdd59d6b8 /engagements/tests/conftest.py
parent5fb0621c53967bf24f4411f579712223e96b296a (diff)
wip: implementing EngagementStrategy
Diffstat (limited to 'engagements/tests/conftest.py')
-rw-r--r--engagements/tests/conftest.py25
1 files changed, 22 insertions, 3 deletions
diff --git a/engagements/tests/conftest.py b/engagements/tests/conftest.py
index 72f1c11..b74feb5 100644
--- a/engagements/tests/conftest.py
+++ b/engagements/tests/conftest.py
@@ -1,8 +1,8 @@
-import pytest
-
from datetime import date
-from engagements.models import EngagementType, Organisation, Engagement, RegulatoryCycle
+import pytest
+
+from engagements.models import Engagement, EngagementStrategy, EngagementType, Organisation, RegulatoryCycle
from myuser.models import TeamUser
@@ -14,6 +14,25 @@ def regulatory_cycles():
@pytest.fixture
+def org():
+ return Organisation.objects.create(name="MOD", is_regulated_entity=False)
+
+
+@pytest.fixture
+def engagement_strategy(regulatory_cycles, org):
+ es = EngagementStrategy.objects.create(
+ name="ES1",
+ description="ES1 description",
+ start_year=RegulatoryCycle.objects.get(start_date="2022-01-01"),
+ end_year=RegulatoryCycle.objects.get(start_date="2024-01-01"),
+ organisation=org,
+ management_sign_off="2022-02-10",
+ inspector_sign_off="2022-01-10",
+ status="DRAFT",
+ )
+
+
+@pytest.fixture
def engagement():
data = {
"proposed_start_date": "2022-10-01",