(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-05-02 06:39:50 +02:00
committed by Anthony LC
parent 8f67e382ba
commit 0a9a583a67

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. Queries shorter than 5 characters should return an empty result set.
""" """
user = factories.UserFactory() user = factories.UserFactory(email="paul@example.com")
client = APIClient() client = APIClient()
client.force_login(user) client.force_login(user)