summaryrefslogtreecommitdiffstats
path: root/engagements/tests/test_models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-10 14:08:35 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-10 14:08:35 +0100
commit15eceda8c762c3e3890f2c160d1c89c36a7b398b (patch)
treea7765189c59d81cdf1368b7989d2ed22c404cbc5 /engagements/tests/test_models.py
parentc4fd33fce3dbef280657c150a7658462c80da877 (diff)
ES basically done
Diffstat (limited to '')
-rw-r--r--engagements/tests/test_models.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/engagements/tests/test_models.py b/engagements/tests/test_models.py
index 426d728..70ae31a 100644
--- a/engagements/tests/test_models.py
+++ b/engagements/tests/test_models.py
@@ -1,7 +1,7 @@
import pytest
+from engagements.models import EngagementStrategy, RegulatoryCycle
from engagements.utils import populate_database
-from engagements.models import RegulatoryCycle, EngagementStrategy
pytestmark = pytest.mark.django_db
@@ -40,4 +40,6 @@ def test_regulatory_cycle_model(regulatory_cycles):
def test_engagement_strategy_model(engagement_strategy):
- assert EngagementStrategy.objects.first()
+ es1 = EngagementStrategy.objects.first()
+ assert es1.organisation.name == "MOD"
+ assert str(es1) == "Engagement Strategy (2022-2024) - MOD"