Skip to content

Commit 533e096

Browse files
CopilotMaferMazu
andauthored
fix: shorten long lines in test_users.py to satisfy pylint line-too-long
Agent-Logs-Url: https://github.com/openedx/openedx-authz/sessions/51fd84d4-f9ee-4d18-9bef-b451810408a6 Co-authored-by: MaferMazu <[email protected]>
1 parent 2c7d843 commit 533e096

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

openedx_authz/tests/api/test_users.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)