From 0a9a583a674a28815a1d5b481067ef41315a0f33 Mon Sep 17 00:00:00 2001 From: Samuel Paccoud - DINUM Date: Fri, 2 May 2025 06:39:50 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85(backend)=20fix=20randomly=20failing?= =?UTF-8?q?=20test=20on=20user=20search?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The user account created to query the API had a random email that could randomly interfere with our search results. --- src/backend/core/tests/test_api_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/core/tests/test_api_users.py b/src/backend/core/tests/test_api_users.py index 91863dc5..179b19ad 100644 --- a/src/backend/core/tests/test_api_users.py +++ b/src/backend/core/tests/test_api_users.py @@ -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="paul@example.com") client = APIClient() client.force_login(user)