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.py23
1 files changed, 4 insertions, 19 deletions
diff --git a/ctrack/caf/tests/factories.py b/ctrack/caf/tests/factories.py
index 4de76a1..1492db4 100644
--- a/ctrack/caf/tests/factories.py
+++ b/ctrack/caf/tests/factories.py
@@ -20,31 +20,16 @@ class CAFFactory(factory.DjangoModelFactory):
class EssentialServiceFactory(factory.DjangoModelFactory):
"""Factory for Essential Services."""
- fnames = [
- "Clock Pylon Systems",
- "Ultramarine Hanglider Navigator",
- "Membranous Floor Heaters",
- "Alan's Wardrobe Hinge Circuits",
- "Marine Sluicegate Extension Pulleys",
- "Ironway Prob Modelling Area",
- "Bufferage Clippers",
- "Slow Gauze Thread Manipulator",
- "Terratoast Piling",
- "Accounting and Warehouse Conducer",
- "Able Hopscotch Mirrors",
- "Jolly Main Legacy Circuitry",
- ]
-
- class Meta:
- model = EssentialService
-
- name = random.choice(fnames)
+ name = Faker("text", max_nb_chars=100, ext_word_list=None)
description = 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")
+ class Meta:
+ model = EssentialService
+
class GradingFactory(factory.DjangoModelFactory):
descriptor = factory.Iterator(