forked from ScoDoc/DocScoDoc
Test API: fix (login utilisateur unique)
This commit is contained in:
parent
aa5ec8e74c
commit
eecc5d267b
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user