(backend) fix flaky test in user search api

Make sure the full is never John for the first user in order to make
sure we always have only 2 users (as the search is performed on both the
email and the full name).
    
Fixes #1765
    
Signed-off-by: Anto59290 <antonin59290@hotmail.com>
This commit is contained in:
Antonin
2026-01-08 12:50:07 +01:00
committed by GitHub
parent f9c9e444c9
commit f7d697d9bd
2 changed files with 5 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ and this project adheres to
- ✨(backend) add documents/all endpoint with descendants #1553
- ✅(export) add PDF regression tests #1762
### Fixed
- ✅(backend) reduce flakiness on backend test #1769
## [4.3.0] - 2026-01-05
### Added

View File

@@ -311,7 +311,7 @@ def test_api_users_list_query_short_queries():
"""
Queries shorter than 5 characters should return an empty result set.
"""
user = factories.UserFactory(email="paul@example.com")
user = factories.UserFactory(email="paul@example.com", full_name="Paul")
client = APIClient()
client.force_login(user)