From 8fe6e1f91f84b304d9498a8104c9a97270624d80 Mon Sep 17 00:00:00 2001 From: stumpylog <797416+stumpylog@users.noreply.github.com> Date: Thu, 6 Aug 2026 08:01:51 -0700 Subject: [PATCH] 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). --- .../tests/test_permission_filtering_security.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/documents/tests/test_permission_filtering_security.py b/src/documents/tests/test_permission_filtering_security.py index 07cfba43f..b291acf5e 100644 --- a/src/documents/tests/test_permission_filtering_security.py +++ b/src/documents/tests/test_permission_filtering_security.py @@ -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)