diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-02-21 12:15:05 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-02-21 12:15:05 +0000 |
commit | af89e906e714f61ca4f5dc09318df0669b12cb6a (patch) | |
tree | 30e61ca5e701a5d8464ae3948fb9428624d5f375 /ctrack/organisations/tests | |
parent | 96710f1c270bcbd2516f05720ad8985a8255774f (diff) |
basic address added to factory script
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/tests/factories.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ctrack/organisations/tests/factories.py b/ctrack/organisations/tests/factories.py index 61f2ae3..daf86ad 100644 --- a/ctrack/organisations/tests/factories.py +++ b/ctrack/organisations/tests/factories.py @@ -110,21 +110,15 @@ class PersonFactory(DjangoModelFactory): class AddressFactory(DjangoModelFactory): type = SubFactory("ctrack.organisations.tests.factories.AddressTypeFactory") organisation = SubFactory(OrganisationFactory) - line1 = Faker("secondary_address", locale="en_GB") + line1 = Faker("building_number", 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("lexify", locale="en_GB", text="??????", letters="aeioutzyj") + country = "UK" + other_details = Faker("text", max_nb_chars=200, ext_word_list=None) class Meta: model = Address - -class AddressTypeFactory(DjangoModelFactory): - descriptor = "Primary Address" - - class Meta: - model = AddressType |