test refactor: try decouple admin tests from other tests

This commit is contained in:
Erik Sundell
2023-06-09 00:20:58 +02:00
parent 111e9bee86
commit b1c7e53be4
3 changed files with 7 additions and 7 deletions

View File

@@ -12,8 +12,8 @@ async def test_admin_login():
Test if the admin that was added during install can login with
the password provided.
"""
username = "admin"
password = "admin"
username = "test-admin-username"
password = "test-admin-password"
async with User(username, hub_url, partial(login_dummy, password=password)) as u:
await u.login()
@@ -24,8 +24,8 @@ async def test_admin_login():
@pytest.mark.parametrize(
"username, password",
[
("admin", ""),
("admin", "wrong_passw"),
("test-admin-username", ""),
("test-admin-username", "wrong_passw"),
("user", "password"),
],
)