aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/tests
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-09-02 12:04:19 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-09-02 12:04:19 +0100
commitedd91cb77191b386af95dfaca0b2706c7ee143b9 (patch)
treeb94edf8e069911d0aea4e1acfc23a72a180cb2cf /ctrack/caf/tests
parent15c89a78c097dc00ad7b8ca3314581ed3b058187 (diff)
parentc406d3da83d20d65c2fc4da7d5d4d5db0f6ad115 (diff)
Merge branch 'db_rewrite' into master
Diffstat (limited to 'ctrack/caf/tests')
-rw-r--r--ctrack/caf/tests/factories.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ctrack/caf/tests/factories.py b/ctrack/caf/tests/factories.py
index 3c62307..7aaf716 100644
--- a/ctrack/caf/tests/factories.py
+++ b/ctrack/caf/tests/factories.py
@@ -10,6 +10,7 @@ from ctrack.organisations.tests.factories import OrganisationFactory, PersonFact
class CAFFactory(factory.DjangoModelFactory):
quality_grading = factory.SubFactory("ctrack.caf.tests.factories.GradingFactory")
confidence_grading = factory.SubFactory("ctrack.caf.tests.factories.GradingFactory")
+ organisation = factory.SubFactory("ctrack.organisations.tests.OrganisationFactory")
file = None
version = Faker("bothify", text="??##", letters="ABCD")
triage_review_date = Faker("date_object")
@@ -29,8 +30,6 @@ class ApplicableSystemFactory(factory.DjangoModelFactory):
function = Faker(
"paragraph", nb_sentences=4, variable_nb_sentences=True, ext_word_list=None
)
- organisation = factory.SubFactory(OrganisationFactory)
- caf = factory.SubFactory("ctrack.caf.tests.factories.CAFFactory")
dft_categorisation = "CR"
class Meta: