def test_no_password_non_interactive_aborts(config): with pytest.raises(exceptions.NonInteractive): auth.Private(config, cred("user")).password
def test_no_username_non_interactive_aborts(config): with pytest.raises(exceptions.NonInteractive): auth.Private(config, auth.CredentialInput("user")).password
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
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