Skip to content

Commit 2f980e8

Browse files
sampaccoudPanchoutNathan
authored andcommitted
✅(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.
1 parent 6edb92e commit 2f980e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/core/tests/test_api_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_api_users_list_query_short_queries():
186186
"""
187187
Queries shorter than 5 characters should return an empty result set.
188188
"""
189-
user = factories.UserFactory()
189+
user = factories.UserFactory(email="[email protected]")
190190
client = APIClient()
191191
client.force_login(user)
192192

0 commit comments

Comments
 (0)