A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Minor tweak to password test to ensure the right lines were hit
Trenton H9784ea4a602d
diff --git a/src/documents/tests/test_barcodes.py b/src/documents/tests/test_barcodes.pyindex 1ff698858..4f7f1278a 100644--- a/src/documents/tests/test_barcodes.py+++ b/src/documents/tests/test_barcodes.py@@ -845,9 +845,14 @@ class TestBarcode(DirectoriesMixin, TestCase):- Scanning handles the exception without crashing"""test_file = os.path.join(self.SAMPLE_DIR, "password-is-test.pdf")- doc_barcode_info = barcodes.scan_file_for_barcodes(- test_file,- )+ with self.assertLogs("paperless.barcodes", level="WARNING") as cm:+ doc_barcode_info = barcodes.scan_file_for_barcodes(+ test_file,+ )+ warning = cm.output[0]+ expected_str = "WARNING:paperless.barcodes:File is likely password protected, not checking for barcodes"+ self.assertTrue(warning.startswith(expected_str))+separator_page_numbers = barcodes.get_separating_barcodes(doc_barcode_info.barcodes,)