diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-16 10:22:02 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-16 10:22:02 +0100 |
commit | 2b11d0e43378c27b250e93e91b9bdc10346af44e (patch) | |
tree | dccbd0cd42e2400e3fa5fb363ab9fcd3616f9393 /ctrack/organisations/tests/test_models.py | |
parent | 7637504292d8fd183af8f4bcbb968fc1b69cd8f7 (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.py | 9 |
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}/" |