(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:
Samuel Paccoud - DINUM
2025-07-01 15:15:16 +02:00
committed by Nathan Panchout
parent 6edb92ee62
commit 2f980e880a
+1 -1
View File
@@ -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)