Tests should have random data
Opened this issue · 1 comments
AlexandrePalo commented
Tests should use randomized data to be repeatable.
We should use an API such as Faker.
For instance:
self.user_only_username = User.objects.create(username='userOnlyUsername')
May be:
from faker import Faker
faker = Faker('fr_FR')
self.user_only_username = User.objects.create(username=faker.user_name())
AlexandrePalo commented
Work in progress on the branch moreTests.