File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -553,8 +553,12 @@ def test_cache_miss_on_different_scope(self):
553553
554554 with patch ("openedx_authz.api.users.is_subject_allowed" ) as mock_enforce :
555555 mock_enforce .return_value = True
556- is_user_allowed (user_external_key = username , action_external_key = action , scope_external_key = "lib:Org1:math_101" )
557- is_user_allowed (user_external_key = username , action_external_key = action , scope_external_key = "lib:Org1:math_advanced" )
556+ is_user_allowed (
557+ user_external_key = username , action_external_key = action , scope_external_key = "lib:Org1:math_101"
558+ )
559+ is_user_allowed (
560+ user_external_key = username , action_external_key = action , scope_external_key = "lib:Org1:math_advanced"
561+ )
558562
559563 # Each distinct scope key is a separate cache entry → two enforcer calls.
560564 self .assertEqual (mock_enforce .call_count , 2 )
You can’t perform that action at this time.
0 commit comments