aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/tests/test_models.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-16 10:22:02 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-16 10:22:02 +0100
commit2b11d0e43378c27b250e93e91b9bdc10346af44e (patch)
treedccbd0cd42e2400e3fa5fb363ab9fcd3616f9393 /ctrack/organisations/tests/test_models.py
parent7637504292d8fd183af8f4bcbb968fc1b69cd8f7 (diff)
added basic lead and deputy inspector to organisation model
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}/"