Tests: Change test order/names in powershell_utils/test_utils.py

This commit is contained in:
Mike Salvatore 2021-08-25 15:33:46 -04:00
parent 8aedc2c391
commit c875aa349f
1 changed files with 9 additions and 9 deletions

View File

@ -18,14 +18,6 @@ def test_get_credentials__empty_windows_false():
assert len(credentials) == 0
def test_get_credentials__username_only_windows_false():
credentials = utils.get_credentials(TEST_USERS, [], False)
assert len(credentials) == 2
assert (TEST_USERS[0], "") in credentials
assert (TEST_USERS[1], "") in credentials
def test_get_credentials__username_only_windows_true():
credentials = utils.get_credentials(TEST_USERS, [], True)
@ -36,7 +28,15 @@ def test_get_credentials__username_only_windows_true():
assert (TEST_USERS[1], None) in credentials
def test_get_credentials__username_password():
def test_get_credentials__username_only_windows_false():
credentials = utils.get_credentials(TEST_USERS, [], False)
assert len(credentials) == 2
assert (TEST_USERS[0], "") in credentials
assert (TEST_USERS[1], "") in credentials
def test_get_credentials__username_password_windows_true():
credentials = utils.get_credentials(TEST_USERS, TEST_PASSWORDS, True)
assert len(credentials) == 9