diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-02-20 16:44:35 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-02-20 16:44:35 +0000 |
commit | 222f447b88572e65a69000e4653061551672950e (patch) | |
tree | e33307fd2cab6f73d3d8765bc961efa27b34f800 | |
parent | 8d2487262dfcffc2d6d20666dd99308b02165e11 (diff) |
fixed some Faker stuff
-rw-r--r-- | ctrack/organisations/tests/factories.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctrack/organisations/tests/factories.py b/ctrack/organisations/tests/factories.py index e079271..3bad765 100644 --- a/ctrack/organisations/tests/factories.py +++ b/ctrack/organisations/tests/factories.py @@ -98,7 +98,7 @@ class PersonFactory(DjangoModelFactory): last_name = Faker("last_name") organisation = SubFactory("ctrack.organisations.tests.factories.OrganisationFactory") email = Faker("ascii_company_email") - secondary_email = "ascii_company_email" + secondary_email = Faker("ascii_company_email") mobile = Faker("msisdn", locale="en_GB") landline = Faker("phone_number", locale="en_GB") date_updated = factory.LazyFunction(datetime.now) @@ -111,7 +111,7 @@ class PersonFactory(DjangoModelFactory): active = True date_ended = Faker("date_this_year") predecessor = SubFactory("ctrack.organisations.tests.factories.PersonFactory") - comments = "Yaa!" + comments = Faker("text", max_nb_chars=500, ext_word_list=None) class AddressFactory(DjangoModelFactory): |