aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/tests/test_models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/organisations/tests/test_models.py')
-rw-r--r--ctrack/organisations/tests/test_models.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ctrack/organisations/tests/test_models.py b/ctrack/organisations/tests/test_models.py
index 108d0ce..adb61d9 100644
--- a/ctrack/organisations/tests/test_models.py
+++ b/ctrack/organisations/tests/test_models.py
@@ -1,18 +1,21 @@
import random
import pytest
-
from slugify import slugify
-from ctrack.organisations.models import IncidentReport, Organisation
from ctrack.caf.models import CAF, Grading
-from ctrack.caf.tests.factories import ApplicableSystemFactory
from ctrack.caf.models import EssentialService
+from ctrack.caf.tests.factories import ApplicableSystemFactory
from ctrack.core.utils import fnames
pytestmark = pytest.mark.django_db
+def test_lead_deputy_inspector(org):
+ assert org.lead_inspector
+ assert org.deputy_lead_inspector
+
+
def test_organisation_get_absolute_url(org):
slug = slugify(org.name)
assert org.get_absolute_url() == f"/organisations/{slug}/"