aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/users
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-01-21 10:12:56 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-01-21 10:12:56 +0000
commit0bfe3454fde753425d37246b73b3eda1b9a756b9 (patch)
tree05d1d6ff7010b01daca45953e82d8f9d65d56571 /ctrack/users
parent6d6b1cd9c405c54cc78dc2b7cbe217ba526a9829 (diff)
fixed failing test - first use of faker object
Diffstat (limited to 'ctrack/users')
-rw-r--r--ctrack/users/tests/factories.py16
1 files changed, 8 insertions, 8 deletions
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