From eecc5d267b6678116f69ec14a61f693b4cb027c4 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 31 Jan 2023 15:25:24 -0300 Subject: [PATCH] Test API: fix (login utilisateur unique) --- tests/api/test_api_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api/test_api_users.py b/tests/api/test_api_users.py index 8a347700b..e0e0e579c 100644 --- a/tests/api/test_api_users.py +++ b/tests/api/test_api_users.py @@ -78,10 +78,10 @@ def test_edit_users(api_admin_headers): nb_users = len(GET("/users/query", headers=admin_h)) user = POST_JSON( "/user/create", - {"user_name": "toto", "nom": "Toto"}, + {"user_name": "test_edit_users", "nom": "Toto"}, headers=admin_h, ) - assert user["user_name"] == "toto" + assert user["user_name"] == "test_edit_users" assert user["dept"] is None assert user["active"] is True assert (nb_users + 1) == len(GET("/users/query", headers=admin_h))