mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-05 23:32:46 -06:00
typing in tests too i guess
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user