diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-02-21 12:39:53 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-02-21 12:39:53 +0000 |
commit | f38b87e9862814883bf8a3ad6b36d989d3097f86 (patch) | |
tree | b112b0d7bd937bac2b17a33c4d9b2176f57135c7 /ctrack/organisations | |
parent | af89e906e714f61ca4f5dc09318df0669b12cb6a (diff) |
better primary email addresses
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/tests/factories.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctrack/organisations/tests/factories.py b/ctrack/organisations/tests/factories.py index daf86ad..d2e4730 100644 --- a/ctrack/organisations/tests/factories.py +++ b/ctrack/organisations/tests/factories.py @@ -90,7 +90,7 @@ class PersonFactory(DjangoModelFactory): first_name = Faker("first_name") last_name = Faker("last_name") organisation = SubFactory("ctrack.organisations.tests.factories.OrganisationFactory") - email = Faker("ascii_company_email") + email = factory.LazyAttribute(lambda o: '%s@%s.com' % (o.first_name.lower(), o.organisation.slug)) secondary_email = Faker("ascii_company_email") mobile = Faker("msisdn", locale="en_GB") landline = Faker("phone_number", locale="en_GB") |