Set initial values to tests
@@ -130,12 +130,16 @@ class TestProject(TestCase):
user_a = get(User)
user_a.set_password('test')
user_a.save()
- project_a = get(Project, users=[user_a], language='es')
+ project_a = get(
+ Project, users=[user_a], language='es', main_language_project=None
+ )
project_a.slug = 'project-a'
project_a.save()
user_b = get(User)
- project_b = get(Project, users=[user_b], language='en')
+ project_b = get(
+ Project, users=[user_b], language='en', main_language_project=None
+ )
project_b.slug = 'project-b'
project_b.save()
