aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/organisations/tests')
-rw-r--r--ctrack/organisations/tests/factories.py2
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")