Skip to content

Commit 7f2d3df

Browse files
committed
Adds test that scope is required
1 parent d2d5891 commit 7f2d3df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_oauth2client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,9 @@ def test_override_flow_via_kwargs(self):
945945
self.assertEqual(OOB_CALLBACK_URN, q['redirect_uri'][0])
946946
self.assertEqual('online', q['access_type'][0])
947947

948+
def test_scope_is_required(self):
949+
self.assertRaises(TypeError, OAuth2WebServerFlow, 'client_id+1')
950+
948951
def test_exchange_failure(self):
949952
http = HttpMockSequence([
950953
({'status': '400'}, b'{"error":"invalid_request"}'),

0 commit comments

Comments
 (0)