Trenton H
ad296df83c
fix: update tests for OCR/archive decoupling
...
- Add @override_settings(ARCHIVE_FILE_GENERATION="always") to tests that
expect archive files to always be produced (test_handle_document,
test_naming_priorities, test_update_content_maybe_archive_file)
- Add test_archive_preference.py with 14 unit tests covering
resolve_archive_preference() and _should_produce_archive_for_pdf()
- Update tesseract parser: add PriorOcrFoundError retry path and split
InputFileError handling (tagged PDF -> skip_text retry vs force-OCR
fallback for other input errors)
- Update checks.py: validate ARCHIVE_FILE_GENERATION, update OCR_MODE
valid set to {auto, force, redo, off}
- Update docs: PAPERLESS_OCR_MODE and PAPERLESS_ARCHIVE_FILE_GENERATION
docs and migration guide for v3
- Update tesseract parser tests, consumer tests, and parsers tests to
reflect new settings and behaviour
2026-03-26 08:40:57 -07:00
Trenton H
e58a35d40c
Feature: Transition sanity check to rich and improve output ( #12182 )
2026-03-02 10:53:39 -08:00
Sebastian Steinbeißer
3b5ffbf9fa
Chore(mypy): Annotate None returns for typing improvements ( #11213 )
2026-02-02 08:44:12 -08:00
shamoon
e940764fe0
Feature: Paperless AI ( #10319 )
2026-01-13 16:24:42 +00:00
Sebastian Steinbeißer
76d363f22d
Chore: switch from os.path to pathlib.Path ( #9060 )
2025-03-05 21:06:01 +00:00
shamoon
2d52226732
Enhancement: system status report sanity check, simpler classifier check, styling updates ( #9106 )
2025-02-26 22:12:20 +00:00
shamoon
9c1561adfb
Change: change update content to handle archive disabled ( #8315 )
2024-11-20 20:01:13 +00:00
shamoon
a796e58a94
Feature: documents trash aka soft delete ( #6944 )
2024-06-17 08:07:08 -07:00
Trenton H
3bcbd05252
Fixes ruff not running isort against the codebase
2023-04-26 09:35:27 -07:00
Trenton Holmes
0df91c31f1
Creates a mix-in for asserting file system states
2023-02-20 10:25:21 -08:00
Trenton Holmes
1262c121f0
Missed one mock
2022-10-10 08:58:23 -07:00
Trenton Holmes
ec045e81f2
Moves the barcode related functionality out of tasks and into its own location. Splits up the testing based on that
2022-07-02 16:19:22 +02:00
Trenton Holmes
d8a7828cb5
Splits tests for the tasks into their own classes
2022-07-02 16:19:22 +02:00
Trenton Holmes
be304e37b4
Refines the sanity check header, fixes other test issues
2022-05-30 18:21:24 -07:00
Florian Brandes
f8adfa9873
fixes #949 : change to MIME detection for files
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de >
2022-05-16 17:29:29 +02:00
Florian Brandes
a7b1658ee1
code review changes
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de >
2022-04-20 00:55:45 +02:00
Florian Brandes
6d0fdc7510
add tests
...
fix indention
add more documentation
Signed-off-by: Florian Brandes <florian.brandes@posteo.de >
2022-04-17 16:10:53 +02:00
Florian Brandes
ad5188a280
add TIFF barcode support
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de >
2022-04-16 21:59:03 +02:00
Florian Brandes
5fae5a9ee0
fix conditional in separate_pages
...
add additional test for separate_pages
Signed-off-by: Florian Brandes <florian.brandes@posteo.de >
2022-04-08 08:09:48 +02:00
Florian Brandes
e214f719c9
add more tests
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de >
2022-04-07 11:14:29 +02:00
Florian Brandes
08fbcf5158
use imported List
...
fail test if non-existing dir exists
Signed-off-by: Florian Brandes <florian.brandes@posteo.de >
2022-04-07 11:14:29 +02:00
Florian Brandes
10ca515ac5
addes tests:
...
- barcode-39
- barcode-128
- qr barcodes
- test for consumption
Signed-off-by: Florian Brandes <florian.brandes@posteo.de >
2022-04-07 11:14:29 +02:00
Florian Brandes
422ac9befe
decode bytecode in string
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de >
2022-04-07 11:14:29 +02:00
Florian Brandes
793f641af6
make list checks consistent
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de >
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
c024b846c3
add config options and documentation
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de >
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
e89ef5de25
renaming of documents to align with front end
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de >
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
50f474ae92
run black
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de >
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
78ca2ffaba
add trailing commas
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de >
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
911f5bc78e
reorder imports
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de >
2022-04-07 11:14:29 +02:00
florian on nixos (Florian Brandes)
b5f77fd6e7
skip test if dir exists
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de >
2022-04-06 21:16:41 +02:00
florian on nixos (Florian Brandes)
4fe966f534
more work on barcode
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de >
2022-04-06 21:16:41 +02:00
florian on nixos (Florian Brandes)
bcce0838dd
working split pages
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de >
2022-04-06 21:16:41 +02:00
florian on nixos (Florian Brandes)
76e43bcb89
add first tests for barcode reader
...
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de >
2022-04-06 21:16:41 +02:00
Trenton Holmes
1771d18a21
Runs the pre-commit hooks over all the Python files
2022-03-11 11:34:28 -08:00
kpj
fc695896dd
Format Python code with black
2022-02-27 15:26:41 +01:00
jonaswinkler
98b147b622
better sanity checker that logs messages in the log files and does not fail on warnings.
2021-02-14 17:08:29 +01:00
jonaswinkler
b48e67d714
revert a faulty change that caused memory usage to explode #537
2021-02-13 19:51:04 +01:00
jonaswinkler
ffe96c8fff
classifier caching
2021-02-06 20:54:58 +01:00
jonaswinkler
35a4779cc0
fix typo
2021-01-30 15:44:23 +01:00
jonaswinkler
87a18eae2d
centralized classifier loading, better error handling, no error messages when auto matching is not used
2021-01-30 14:22:23 +01:00
jonaswinkler
e24b40de29
more tests
2020-12-29 21:01:18 +01:00
jonaswinkler
384d381acf
more testing.
2020-12-01 15:26:15 +01:00
jonaswinkler
e431a658cc
more testing.
2020-11-30 22:04:25 +01:00