diff --git a/src/documents/tests/test_permission_filtering_security.py b/src/documents/tests/test_permission_filtering_security.py index 36390f5ac..eaf1f910d 100644 --- a/src/documents/tests/test_permission_filtering_security.py +++ b/src/documents/tests/test_permission_filtering_security.py @@ -562,7 +562,7 @@ class TestPermittedObjectIdsGenericModels: @pytest.mark.django_db class TestMatchingRespectsObjectPermissions: - def test_match_tags_only_considers_tags_visible_to_user(self): + def test_match_tags_only_considers_tags_visible_to_user(self) -> None: owner = User.objects.create_user(username="tag_owner") classifying_user = User.objects.create_user(username="classifier_user") visible_tag = TagFactory( @@ -583,7 +583,9 @@ class TestMatchingRespectsObjectPermissions: assert visible_tag.pk in matched_ids assert hidden_tag.pk not in matched_ids - def test_match_correspondents_only_considers_correspondents_visible_to_user(self): + def test_match_correspondents_only_considers_correspondents_visible_to_user( + self, + ) -> None: owner = User.objects.create_user(username="correspondent_owner") classifying_user = User.objects.create_user(username="classifier_user2") visible_correspondent = CorrespondentFactory( @@ -604,7 +606,9 @@ class TestMatchingRespectsObjectPermissions: assert visible_correspondent.pk in matched_ids assert hidden_correspondent.pk not in matched_ids - def test_match_document_types_only_considers_document_types_visible_to_user(self): + def test_match_document_types_only_considers_document_types_visible_to_user( + self, + ) -> None: owner = User.objects.create_user(username="document_type_owner") classifying_user = User.objects.create_user(username="classifier_user3") visible_document_type = DocumentTypeFactory( @@ -625,7 +629,9 @@ class TestMatchingRespectsObjectPermissions: assert visible_document_type.pk in matched_ids assert hidden_document_type.pk not in matched_ids - def test_match_storage_paths_only_considers_storage_paths_visible_to_user(self): + def test_match_storage_paths_only_considers_storage_paths_visible_to_user( + self, + ) -> None: owner = User.objects.create_user(username="storage_path_owner") classifying_user = User.objects.create_user(username="classifier_user4") visible_storage_path = StoragePathFactory(