From 5a955f9796c199338eb3182f1918c4708593a1be Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 13 Aug 2020 11:49:04 +0100 Subject: changed description field to funciton in ApplicableSystem --- ctrack/caf/tests/factories.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ctrack/caf/tests/factories.py') diff --git a/ctrack/caf/tests/factories.py b/ctrack/caf/tests/factories.py index bc2431e..4c2d5b8 100644 --- a/ctrack/caf/tests/factories.py +++ b/ctrack/caf/tests/factories.py @@ -14,8 +14,9 @@ class CAFFactory(factory.DjangoModelFactory): 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) - + comments = Faker( + "paragraph", nb_sentences=5, variable_nb_sentences=True, ext_word_list=None + ) class Meta: model = CAF @@ -25,7 +26,7 @@ class ApplicableSystemFactory(factory.DjangoModelFactory): """Factory for Essential Services.""" name = Faker("text", max_nb_chars=100, ext_word_list=None) - description = Faker( + function = Faker( "paragraph", nb_sentences=4, variable_nb_sentences=True, ext_word_list=None ) organisation = factory.SubFactory(OrganisationFactory) -- cgit v1.2.3