forked from p34709852/monkey
island: Remove parameter names from UserCreds() init in tests
This commit is contained in:
parent
e4dec5501e
commit
f73b048169
|
@ -29,12 +29,12 @@ def test_to_dict_empty_creds():
|
|||
|
||||
|
||||
def test_to_dict_full_creds():
|
||||
user_creds = UserCreds(username=TEST_USER, password_hash=TEST_HASH)
|
||||
user_creds = UserCreds(TEST_USER, TEST_HASH)
|
||||
assert user_creds.to_dict() == {"user": TEST_USER, "password_hash": TEST_HASH}
|
||||
|
||||
|
||||
def test_to_auth_user_full_credentials():
|
||||
user_creds = UserCreds(username=TEST_USER, password_hash=TEST_HASH)
|
||||
user_creds = UserCreds(TEST_USER, TEST_HASH)
|
||||
auth_user = user_creds.to_auth_user()
|
||||
assert auth_user.id == 1
|
||||
assert auth_user.username == TEST_USER
|
||||
|
|
Loading…
Reference in New Issue