From 0bfe3454fde753425d37246b73b3eda1b9a756b9 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 21 Jan 2020 10:12:56 +0000 Subject: fixed failing test - first use of faker object --- ctrack/users/tests/factories.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ctrack/users/tests') diff --git a/ctrack/users/tests/factories.py b/ctrack/users/tests/factories.py index b104a23..6c5c7cd 100644 --- a/ctrack/users/tests/factories.py +++ b/ctrack/users/tests/factories.py @@ -7,21 +7,21 @@ from factory import DjangoModelFactory, Faker, post_generation class OrganisationFactory(DjangoModelFactory): - name = Faker("name") + name = Faker("company", locale="en_GB") class Meta: model = Organisation class AddressFactory(DjangoModelFactory): - line1 = Faker("line1") - line2 = Faker("line2") - line3 = Faker("line3") - city = Faker("city") - county = Faker("county") - postcode = Faker("postcode") + line1 = Faker("secondary_address", locale="en_GB") + line2 = Faker("street_name", locale="en_GB") + line3 = Faker("secondary_address", locale="en_GB") + city = Faker("city", locale="en_GB") + county = Faker("lexify", locale="en_GB", text="??????", letters="aeioutzyj") + postcode = Faker("postcode", locale="en_GB") country = Faker("country") - other_details = Faker("other_details") + other_details = Faker("lexify", locale="en_GB", text="??????", letters="aeioutzyj") class Meta: model = Address -- cgit v1.2.3