summaryrefslogtreecommitdiffstats
path: root/engagements/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'engagements/tests/conftest.py')
-rw-r--r--engagements/tests/conftest.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/engagements/tests/conftest.py b/engagements/tests/conftest.py
index cb0b9e0..72f1c11 100644
--- a/engagements/tests/conftest.py
+++ b/engagements/tests/conftest.py
@@ -1,10 +1,19 @@
import pytest
-from engagements.models import EngagementType, Organisation, Engagement
+from datetime import date
+
+from engagements.models import EngagementType, Organisation, Engagement, RegulatoryCycle
from myuser.models import TeamUser
@pytest.fixture
+def regulatory_cycles():
+ RegulatoryCycle.objects.create(start_date="2024-01-01", end_date="2024-12-31")
+ RegulatoryCycle.objects.create(start_date="2023-01-01", end_date="2023-12-31")
+ RegulatoryCycle.objects.create(start_date="2022-01-01", end_date="2022-12-31")
+
+
+@pytest.fixture
def engagement():
data = {
"proposed_start_date": "2022-10-01",