🐛(tests) fix flaky back-end test
fixed a test that would fail because of random auth user name being too close to tested names (assert would find 2 results instead of 1). Setting the name of auth user should fix the issue permanently.
This commit is contained in:
committed by
Laurent Bossavit
parent
94a443525e
commit
5d2e63fc18
@@ -100,7 +100,7 @@ def test_api_contacts_list_authenticated_by_full_name():
|
||||
Authenticated users should be able to search users with a case insensitive and
|
||||
partial query on the full name.
|
||||
"""
|
||||
user = factories.UserFactory()
|
||||
user = factories.UserFactory(name="Prudence Crandall")
|
||||
|
||||
dave = factories.BaseContactFactory(full_name="David Bowman")
|
||||
nicole = factories.BaseContactFactory(full_name="Nicole Foole")
|
||||
|
||||
Reference in New Issue
Block a user