diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-03-03 08:38:30 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-03-03 08:38:40 +0000 |
commit | c7f9b3340944f58077747fcbd54ac721fd4cfc58 (patch) | |
tree | 4349326f15489998cb9151bf101e90c306fb5b11 /ctrack/caf/tests/factories.py | |
parent | eb9b5823265ed2641428b15fe406431c7a458c1c (diff) |
added extra fields to caf model
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/tests/factories.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ctrack/caf/tests/factories.py b/ctrack/caf/tests/factories.py index 1492db4..2e5bd36 100644 --- a/ctrack/caf/tests/factories.py +++ b/ctrack/caf/tests/factories.py @@ -4,7 +4,7 @@ import factory from factory import Faker from ctrack.caf.models import EssentialService, Grading, DocumentFile, FileStore, CAF -from ctrack.organisations.tests.factories import OrganisationFactory +from ctrack.organisations.tests.factories import OrganisationFactory, PersonFactory class CAFFactory(factory.DjangoModelFactory): @@ -12,6 +12,11 @@ class CAFFactory(factory.DjangoModelFactory): quality_grading = factory.SubFactory("ctrack.caf.tests.factories.GradingFactory") confidence_grading = factory.SubFactory("ctrack.caf.tests.factories.GradingFactory") file = None + version = Faker("bothify", text="??##", letters="ABCD") + triage_review_date = Faker("date_object") + triage_review_inspector = factory.SubFactory(PersonFactory) + comments = Faker("paragraph", nb_sentences=5, variable_nb_sentences=True, ext_word_list=None) + class Meta: model = CAF |