From 2b11d0e43378c27b250e93e91b9bdc10346af44e Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 16 Oct 2020 10:22:02 +0100 Subject: added basic lead and deputy inspector to organisation model --- ctrack/organisations/tests/test_models.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ctrack/organisations/tests/test_models.py') 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}/" -- cgit v1.2.3