From 222f447b88572e65a69000e4653061551672950e Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 20 Feb 2020 16:44:35 +0000 Subject: fixed some Faker stuff --- ctrack/organisations/tests/factories.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ctrack/organisations/tests/factories.py') 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): -- cgit v1.2.3