diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-02-25 07:10:09 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-02-25 07:10:09 +0000 |
commit | 257d5fbdc2b6336f5a3799aeec3bc906348d59ee (patch) | |
tree | 14bde9be982ad295ef24a578b43e8ba2f81b2168 /ctrack/caf/tests | |
parent | 190cd74177f06a91460c7e64aeab2f6abede4343 (diff) |
Added new factories for Caf app.
Diffstat (limited to 'ctrack/caf/tests')
-rw-r--r-- | ctrack/caf/tests/__init__.py | 0 | ||||
-rw-r--r-- | ctrack/caf/tests/factories.py | 17 |
2 files changed, 17 insertions, 0 deletions
diff --git a/ctrack/caf/tests/__init__.py b/ctrack/caf/tests/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ctrack/caf/tests/__init__.py 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 |