Skip to content

Commit 763073f

Browse files
author
Massimiliano
committed
extended test case
1 parent ea8cb47 commit 763073f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2_provider/tests/test_decorators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ def scoped_view(request, *args, **kwargs):
7474
self.assertEqual(response, "moar protected contents")
7575

7676
def test_rw_protected(self):
77-
self.access_token.scope = 'write'
77+
self.access_token.scope = 'exotic_scope write'
7878
self.access_token.save()
7979
auth_headers = {
8080
'HTTP_AUTHORIZATION': 'Bearer ' + self.access_token.token,
8181
}
8282

83-
@rw_protected_resource()
83+
@rw_protected_resource(scopes=['exotic_scope'])
8484
def scoped_view(request, *args, **kwargs):
8585
return 'other protected contents'
8686

0 commit comments

Comments
 (0)