aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/tests/factories.py
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/caf/tests/factories.py')
-rw-r--r--ctrack/caf/tests/factories.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/ctrack/caf/tests/factories.py b/ctrack/caf/tests/factories.py
new file mode 100644
index 0000000..ec02bce
--- /dev/null
+++ b/ctrack/caf/tests/factories.py
@@ -0,0 +1,17 @@
+import factory
+
+from ctrack.caf.models import CAF, EssentialService
+from ctrack.organisations.tests.factories import PersonFactory
+
+
+class EssentialServiceFactory(factory.DjangoModelFactory):
+ """Factory for Essential Services."""
+ model = EssentialService
+
+
+class CAFFactory(factory.DjangoModelFactory):
+ """Factory for CAFs."""
+ model = CAF
+ owner = factory.SubFactory(PersonFactory)
+# triage_ranking = factory.SubFactory(TriageRankingFactory)
+# TODO - we want an abstract Ranking