diff --git a/src/documents/tests/test_bulk_edit.py b/src/documents/tests/test_bulk_edit.py index f687306a9..191b452ac 100644 --- a/src/documents/tests/test_bulk_edit.py +++ b/src/documents/tests/test_bulk_edit.py @@ -677,7 +677,7 @@ class TestPDFActions(DirectoriesMixin, TestCase): self, mock_consume_file, mock_delete_documents, - ): + ) -> None: """ GIVEN: - Existing documents @@ -706,7 +706,7 @@ class TestPDFActions(DirectoriesMixin, TestCase): self, mock_consume_file, mock_delete_documents, - ): + ) -> None: """ GIVEN: - Existing documents with ASNs @@ -731,7 +731,7 @@ class TestPDFActions(DirectoriesMixin, TestCase): consume_file_args, _ = mock_consume_file.call_args 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: - Existing document with no archive serial number @@ -873,7 +873,7 @@ class TestPDFActions(DirectoriesMixin, TestCase): mock_chord, mock_consume_file, mock_delete_documents, - ): + ) -> None: """ GIVEN: - Existing documents @@ -1126,7 +1126,7 @@ class TestPDFActions(DirectoriesMixin, TestCase): mock_chord, mock_consume_file, mock_delete_documents, - ): + ) -> None: """ GIVEN: - Existing document diff --git a/src/documents/tests/test_consumer.py b/src/documents/tests/test_consumer.py index dc92d339f..5dd6b64f4 100644 --- a/src/documents/tests/test_consumer.py +++ b/src/documents/tests/test_consumer.py @@ -1267,7 +1267,7 @@ class PostConsumeTestCase(DirectoriesMixin, GetConsumerMixin, TestCase): class TestMetadataOverrides(TestCase): - def test_update_skip_asn_if_exists(self): + def test_update_skip_asn_if_exists(self) -> None: base = DocumentMetadataOverrides() incoming = DocumentMetadataOverrides(skip_asn_if_exists=True) base.update(incoming) @@ -1285,7 +1285,7 @@ class TestBarcodeApplyDetectedASN(TestCase): - 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( checksum="X1", title="D1",