File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def test_validate_scope_with_none_scope_allows_all():
1111 scope = None , # No scope restriction
1212 redirect_uris = ["http://localhost/callback" ],
1313 )
14-
14+
1515 # Should not raise - all scopes allowed when no restriction
1616 result = client .validate_scope ("read write admin" )
1717 assert result == ["read" , "write" , "admin" ]
@@ -25,7 +25,7 @@ def test_validate_scope_with_empty_requested_returns_none():
2525 scope = "read write" ,
2626 redirect_uris = ["http://localhost/callback" ],
2727 )
28-
28+
2929 result = client .validate_scope (None )
3030 assert result is None
3131
@@ -38,11 +38,11 @@ def test_validate_scope_with_restrictions_enforced():
3838 scope = "read write" ,
3939 redirect_uris = ["http://localhost/callback" ],
4040 )
41-
41+
4242 # Allowed scope
4343 result = client .validate_scope ("read" )
4444 assert result == ["read" ]
45-
45+
4646 # Disallowed scope should raise
4747 with pytest .raises (InvalidScopeError ):
4848 client .validate_scope ("admin" )
You can’t perform that action at this time.
0 commit comments