Example #1
0
def test_no_password_non_interactive_aborts(config):
    with pytest.raises(exceptions.NonInteractive):
        auth.Private(config, cred("user")).password
Example #2
0
def test_no_username_non_interactive_aborts(config):
    with pytest.raises(exceptions.NonInteractive):
        auth.Private(config, auth.CredentialInput("user")).password
Example #3
0
def test_get_password_keyring_missing_non_interactive_aborts(
        entered_username, keyring_missing_get_credentials, config):
    with pytest.raises(exceptions.NonInteractive):
        auth.Private(config, cred("user")).password
Example #4
0
def test_get_username_keyring_missing_non_interactive_aborts(
        entered_username, keyring_missing_get_credentials, config):
    with pytest.raises(exceptions.NonInteractive):
        auth.Private(config, auth.CredentialInput()).username