fix: assert cumulative readonly scope in tasks full-level test

Addresses CodeRabbit Review 3 nitpick: verify TASKS_READONLY_SCOPE is
present at full level, confirming cumulative scope expansion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
mickey-mikey
2026-03-04 16:40:50 +11:00
parent 69dd5069dc
commit acc3e665d0

View File

@@ -129,9 +129,10 @@ class TestGetScopesForPermission:
assert TASKS_READONLY_SCOPE in scopes
def test_tasks_full_includes_write_scope(self):
"""Full level should include write scope from manage."""
"""Full level should include write and readonly scopes from lower levels."""
scopes = get_scopes_for_permission("tasks", "full")
assert TASKS_SCOPE in scopes
assert TASKS_READONLY_SCOPE in scopes
def test_tasks_manage_is_valid_level(self):
"""tasks:manage should be accepted by parse_permissions_arg."""