1
0
forked from ScoDoc/ScoDoc

Test API: fix (login utilisateur unique)

This commit is contained in:
Emmanuel Viennet 2023-01-31 15:25:24 -03:00
parent aa5ec8e74c
commit eecc5d267b

View File

@ -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))