borgia-app/Borgia

Tests should have random data

Opened this issue · 1 comments

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())

Work in progress on the branch moreTests.