Skip to content

Commit

Permalink
Use free_email in UserFactory email field
Browse files Browse the repository at this point in the history
The `safe_email` Faker provider always uses `example.(net|com|org)` as
the email domain. For some reason, this causes validation errors with
dandischema.
  • Loading branch information
jjnesbitt committed Apr 29, 2022
1 parent 17d3019 commit 7d20685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandiapi/api/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Meta:
model = User

username = factory.SelfAttribute('email')
email = factory.Faker('safe_email')
email = factory.Faker('free_email')
first_name = factory.Faker('first_name')
last_name = factory.Faker('last_name')

Expand Down

0 comments on commit 7d20685

Please sign in to comment.