test: type-hint TestMatchingRespectsObjectPermissions test signatures

Matches the project convention of annotating test signatures.
This commit is contained in:
stumpylog
2026-08-06 08:35:06 -07:00
parent a0324755f7
commit c604be5dc7
@@ -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(