Test API: fix (login utilisateur unique)
This commit is contained in:
parent
fc78484186
commit
ee2ac9d986
@ -78,10 +78,10 @@ def test_edit_users(api_admin_headers):
|
|||||||
nb_users = len(GET("/users/query", headers=admin_h))
|
nb_users = len(GET("/users/query", headers=admin_h))
|
||||||
user = POST_JSON(
|
user = POST_JSON(
|
||||||
"/user/create",
|
"/user/create",
|
||||||
{"user_name": "toto", "nom": "Toto"},
|
{"user_name": "test_edit_users", "nom": "Toto"},
|
||||||
headers=admin_h,
|
headers=admin_h,
|
||||||
)
|
)
|
||||||
assert user["user_name"] == "toto"
|
assert user["user_name"] == "test_edit_users"
|
||||||
assert user["dept"] is None
|
assert user["dept"] is None
|
||||||
assert user["active"] is True
|
assert user["active"] is True
|
||||||
assert (nb_users + 1) == len(GET("/users/query", headers=admin_h))
|
assert (nb_users + 1) == len(GET("/users/query", headers=admin_h))
|
||||||
|
Loading…
Reference in New Issue
Block a user