summaryrefslogtreecommitdiffstats
path: root/engagements/tests/test_models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-10 12:11:12 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-10 12:11:12 +0100
commit5fb0621c53967bf24f4411f579712223e96b296a (patch)
treeb99a1d823e27e0eb6ebf90f9cdf341edda963d69 /engagements/tests/test_models.py
parentf96b5ba4052c28d2bd2c03cefba3a2e828dd059d (diff)
Adds RegulatoryCycle model
Diffstat (limited to '')
-rw-r--r--engagements/tests/test_models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/engagements/tests/test_models.py b/engagements/tests/test_models.py
index 3b84ead..d7aa458 100644
--- a/engagements/tests/test_models.py
+++ b/engagements/tests/test_models.py
@@ -1,6 +1,7 @@
import pytest
from engagements.utils import populate_database
+from engagements.models import RegulatoryCycle
pytestmark = pytest.mark.django_db
@@ -29,3 +30,14 @@ def test_effort_by_type(data):
def test_total_effort_for_engagement(data):
e = data["engagements"][0]
assert e.total_effort() == 5.25
+
+
+def test_regulatory_cycle_model(regulatory_cycles):
+ rc = RegulatoryCycle.objects.first()
+ rc2023 = RegulatoryCycle.objects.get(start_date="2023-01-01")
+ assert str(rc) == "Regulatory Cycle: 2024"
+ assert str(rc2023) == "Regulatory Cycle: 2023"
+
+
+# def test_engagement_strategy_model(data):
+# assert EngagementStrategy.objects.first()