Index: sitescripts/oauth2dl/test/test_oauth2dl.py |
diff --git a/sitescripts/oauth2dl/test/test_oauth2dl.py b/sitescripts/oauth2dl/test/test_oauth2dl.py |
index 74161129dfbe99775c9cd39f1aea2f05c91974e7..0413678abb13de4cce5dac6982ccb14bb38a369d 100644 |
--- a/sitescripts/oauth2dl/test/test_oauth2dl.py |
+++ b/sitescripts/oauth2dl/test/test_oauth2dl.py |
@@ -135,11 +135,11 @@ def test_extracting_from_environment_vars(): |
@pytest.mark.parametrize('key, expected_stderr, expected_code', [ |
('keyfile_missing_key.json', 'Invalid key file format!', 1), |
- ('keyfile_invalid_private_key.json', 'invalid_client: The OAuth ' |
- 'client was not found.', 1), |
+ ('keyfile_invalid_private_key.json', 'invalid_grant: Not a valid email ' |
+ 'or user ID.', 1), |
('keyfile_invalid_type.json', "('Unexpected credentials type', u'invalid'," |
" 'Expected', 'service_account')", 1), |
- ('good_keyfile.json', 'invalid_client: The OAuth client was not found.', |
+ ('good_keyfile.json', 'invalid_grant: Not a valid email or user ID.', |
1), |
]) |
def test_keyfile_errors(rootdir, key, expected_stderr, expected_code): |