✅(backend) fix randomly failing test on user search
The user account created to query the API had a random email that could randomly interfere with our search results.
This commit is contained in:
@@ -186,7 +186,7 @@ def test_api_users_list_query_short_queries():
|
||||
"""
|
||||
Queries shorter than 5 characters should return an empty result set.
|
||||
"""
|
||||
user = factories.UserFactory()
|
||||
user = factories.UserFactory(email="[email protected]")
|
||||
client = APIClient()
|
||||
client.force_login(user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user