test: type-hint bulk-edit-objects permission test signatures

Matches the project convention of annotating fixture params and test
signatures (rest_api_client: APIClient, -> None).
This commit is contained in:
stumpylog
2026-08-06 08:35:06 -07:00
parent 5be0a63102
commit 8fe6e1f91f
@@ -655,7 +655,10 @@ class TestMatchingRespectsObjectPermissions:
@pytest.mark.django_db
class TestBulkEditObjectsApplyToAllPermissionBoundary:
def test_apply_to_all_tags_excludes_unpermitted_tag(self, rest_api_client):
def test_apply_to_all_tags_excludes_unpermitted_tag(
self,
rest_api_client: APIClient,
) -> None:
owner = User.objects.create_user(username="tags_owner")
requester = User.objects.create_user(username="tags_requester")
# grant the global change_tag permission so the object-level
@@ -696,8 +699,8 @@ class TestBulkEditObjectsApplyToAllPermissionBoundary:
class TestBulkEditObjectsTagDescendantPartialPermission:
def test_apply_to_all_descendant_expansion_respects_per_object_permissions(
self,
rest_api_client,
):
rest_api_client: APIClient,
) -> None:
"""
GIVEN:
- A tag hierarchy (parent -> permitted_child, unpermitted_child)