typing in tests too i guess

This commit is contained in:
shamoon
2026-02-04 23:53:11 -08:00
parent 4fefff5637
commit 093c209fbc
2 changed files with 7 additions and 7 deletions

View File

@@ -677,7 +677,7 @@ class TestPDFActions(DirectoriesMixin, TestCase):
self, self,
mock_consume_file, mock_consume_file,
mock_delete_documents, mock_delete_documents,
): ) -> None:
""" """
GIVEN: GIVEN:
- Existing documents - Existing documents
@@ -706,7 +706,7 @@ class TestPDFActions(DirectoriesMixin, TestCase):
self, self,
mock_consume_file, mock_consume_file,
mock_delete_documents, mock_delete_documents,
): ) -> None:
""" """
GIVEN: GIVEN:
- Existing documents with ASNs - Existing documents with ASNs
@@ -731,7 +731,7 @@ class TestPDFActions(DirectoriesMixin, TestCase):
consume_file_args, _ = mock_consume_file.call_args consume_file_args, _ = mock_consume_file.call_args
self.assertEqual(consume_file_args[1].asn, 202) self.assertEqual(consume_file_args[1].asn, 202)
def test_restore_archive_serial_numbers_task(self): def test_restore_archive_serial_numbers_task(self) -> None:
""" """
GIVEN: GIVEN:
- Existing document with no archive serial number - Existing document with no archive serial number
@@ -873,7 +873,7 @@ class TestPDFActions(DirectoriesMixin, TestCase):
mock_chord, mock_chord,
mock_consume_file, mock_consume_file,
mock_delete_documents, mock_delete_documents,
): ) -> None:
""" """
GIVEN: GIVEN:
- Existing documents - Existing documents
@@ -1126,7 +1126,7 @@ class TestPDFActions(DirectoriesMixin, TestCase):
mock_chord, mock_chord,
mock_consume_file, mock_consume_file,
mock_delete_documents, mock_delete_documents,
): ) -> None:
""" """
GIVEN: GIVEN:
- Existing document - Existing document

View File

@@ -1267,7 +1267,7 @@ class PostConsumeTestCase(DirectoriesMixin, GetConsumerMixin, TestCase):
class TestMetadataOverrides(TestCase): class TestMetadataOverrides(TestCase):
def test_update_skip_asn_if_exists(self): def test_update_skip_asn_if_exists(self) -> None:
base = DocumentMetadataOverrides() base = DocumentMetadataOverrides()
incoming = DocumentMetadataOverrides(skip_asn_if_exists=True) incoming = DocumentMetadataOverrides(skip_asn_if_exists=True)
base.update(incoming) base.update(incoming)
@@ -1285,7 +1285,7 @@ class TestBarcodeApplyDetectedASN(TestCase):
- If skip_asn_if_exists is set, and ASN does not exist, set ASN - If skip_asn_if_exists is set, and ASN does not exist, set ASN
""" """
def test_apply_detected_asn_skips_existing_when_flag_set(self): def test_apply_detected_asn_skips_existing_when_flag_set(self) -> None:
doc = Document.objects.create( doc = Document.objects.create(
checksum="X1", checksum="X1",
title="D1", title="D1",