Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/oauth2dl/test/test_oauth2dl.py

Issue 29934555: Noissue - Quickfix for tests failing in oauth2dl (Closed)
Patch Set: Created Nov. 2, 2018, 11:20 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld