mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-07 11:23:18 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user