From 6f18713a7e0df579baf2b4a65d6a822ead295785 Mon Sep 17 00:00:00 2001 From: Marie Date: Thu, 1 Feb 2024 10:32:15 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D(doc)=20improve=20test=20names=20an?= =?UTF-8?q?d=20docstrings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit improve test names and docstrings Co-authored-by: aleb_the_flash <45729124+lebaudantoine@users.noreply.github.com> --- src/backend/core/tests/test_api_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/core/tests/test_api_users.py b/src/backend/core/tests/test_api_users.py index 6d6d85f..8adad4b 100644 --- a/src/backend/core/tests/test_api_users.py +++ b/src/backend/core/tests/test_api_users.py @@ -124,10 +124,10 @@ def test_api_users_authenticated_list_multiple_identities_single_user(): assert response.json()["results"][0]["id"] == str(dave.id) -def test_api_users_authenticated_list_multiple_identities_best_result(): +def test_api_users_authenticated_list_multiple_identities_multiple_users(): """ User with multiple identities should be ranked - on their best matching identities. + on their best matching identity. """ user = factories.UserFactory(email="tester@ministry.fr") factories.IdentityFactory(user=user, email=user.email)