aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/tests/test_models.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-16 13:54:53 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-16 13:54:53 +0100
commit9f9528a0cc7b05166669fee163d655e5e1b7e563 (patch)
tree6997bd889db2fb672ce09f540d5dc17434660944 /ctrack/organisations/tests/test_models.py
parenteb8497dcd3758d20447d4de977780c2c78a38613 (diff)
participants added to create new simple event form and can filter by org when landed from org detail
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/tests/test_models.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/ctrack/organisations/tests/test_models.py b/ctrack/organisations/tests/test_models.py
index adb61d9..e4caeb5 100644
--- a/ctrack/organisations/tests/test_models.py
+++ b/ctrack/organisations/tests/test_models.py
@@ -7,10 +7,17 @@ from ctrack.caf.models import CAF, Grading
from ctrack.caf.models import EssentialService
from ctrack.caf.tests.factories import ApplicableSystemFactory
from ctrack.core.utils import fnames
+from ctrack.organisations.tests.factories import PersonFactory
pytestmark = pytest.mark.django_db
+def test_get_people(org, person):
+ person.organisation = org
+ person.save()
+ assert person in org.get_people()
+
+
def test_lead_deputy_inspector(org):
assert org.lead_inspector
assert org.deputy_lead_inspector
@@ -45,8 +52,8 @@ def test_essential_service(org):
triage_review_date=None,
triage_review_inspector=None,
)
- ass = ApplicableSystemFactory.create(name=random.choice(fnames), caf=caf,)
- ass2 = ApplicableSystemFactory.create(name=random.choice(fnames), caf=caf,)
+ ass = ApplicableSystemFactory.create(name=random.choice(fnames), caf=caf, )
+ ass2 = ApplicableSystemFactory.create(name=random.choice(fnames), caf=caf, )
es = EssentialService.objects.create(
name="Test ES", description="Test ES Description", organisation=org
)