paperless-ngx/src/documents/tests
Antoine Mérino 8adc26e09d
Enhancement: Limit excessively long content length when computing suggestions (#10656)
This helps prevent excessive processing times on very large documents
by limiting the text analyzed during date parsing, tag prediction,
and correspondent matching.

If the document exceeds 1.2M chars, crop to 1M char.
2025-09-09 13:02:16 -07:00
..
data Fix: Catch new warning when loading the classifier (#5395) 2024-01-14 13:21:17 -08:00
examples
samples Merge commit from fork 2025-08-16 07:34:00 -07:00
__init__.py
conftest.py Chore: Switch remote version check to HTTPx (#9232) 2025-02-26 12:37:33 -08:00
factories.py
test_admin.py Chore: fix coverage for superuser change 2025-01-20 12:02:20 -08:00
test_api_app_config.py Fix some tests from b1c406680f 2025-08-16 07:53:48 -07:00
test_api_bulk_download.py Chore: Switch from os.path to pathlib.Path (#8644) 2025-01-29 10:58:53 -08:00
test_api_bulk_edit.py Feature: PDF editor (#10318) 2025-08-11 17:29:48 +00:00
test_api_custom_fields.py Fix: backwards-compatible versioned API response for custom field select fields (#8912) 2025-01-27 07:34:23 -08:00
test_api_documents.py Fix: correct api created coercion with timezone (#10287) 2025-06-28 21:39:14 -07:00
test_api_filter_by_custom_fields.py Chore: Enable ruff FBT (#8645) 2025-02-07 09:12:03 -08:00
test_api_objects.py Change: treat created as date not datetime (#9793) 2025-05-16 14:23:04 +00:00
test_api_permissions.py Fix: more api fixes (#10204) 2025-06-19 08:28:41 -07:00
test_api_profile.py Fixhancement: better handle removed social apps in profile (#9876) 2025-05-11 19:55:33 +00:00
test_api_remote_version.py Chore: Switch remote version check to HTTPx (#9232) 2025-02-26 12:37:33 -08:00
test_api_schema.py Feature: openapi spec, full api browser (#8948) 2025-02-10 16:43:07 +00:00
test_api_search.py Fix: handle whoosh query correction errors (#10121) 2025-06-05 08:57:25 -07:00
test_api_status.py Enhancement: system status report sanity check, simpler classifier check, styling updates (#9106) 2025-02-26 22:12:20 +00:00
test_api_tasks.py Enhancement: system status report sanity check, simpler classifier check, styling updates (#9106) 2025-02-26 22:12:20 +00:00
test_api_trash.py Change: treat created as date not datetime (#9793) 2025-05-16 14:23:04 +00:00
test_api_uisettings.py QoL: log version at startup, show backend vs frontend mismatch in system status (#10214) 2025-06-19 08:29:34 -07:00
test_api_workflows.py Fix: more api fixes (#10204) 2025-06-19 08:28:41 -07:00
test_barcodes.py Enhancement: add barcode frontend config (#9742) 2025-05-11 19:44:06 +00:00
test_bulk_edit.py Feature: PDF editor (#10318) 2025-08-11 17:29:48 +00:00
test_caching.py Performance: Classifier performance optimizations (#10363) 2025-08-06 16:00:11 -04:00
test_checks.py Feature: Enhanced templating for filename format (#7836) 2024-10-06 12:54:01 -07:00
test_classifier.py Chore: switch from os.path to pathlib.Path (#10539) 2025-09-03 08:12:41 -07:00
test_consumer.py Chore: switch from os.path to pathlib.Path (#10539) 2025-09-03 08:12:41 -07:00
test_date_parsing.py Fix: include application config language settings for dateparser auto-detection (#10722) 2025-08-31 15:22:39 -07:00
test_delayedquery.py Chore: Enable ruff FBT (#8645) 2025-02-07 09:12:03 -08:00
test_document_model.py Enhancement: Limit excessively long content length when computing suggestions (#10656) 2025-09-09 13:02:16 -07:00
test_double_sided.py Chore: Drop Python 3.9 support (#7774) 2024-09-26 12:22:24 -07:00
test_file_handling.py Feature: Add filter to localize dates for filepath templating (#10559) 2025-08-14 09:13:08 -07:00
test_index.py Fix: Make some natural keyword date searches timezone-aware (#10416) 2025-07-23 22:05:55 -07:00
test_management.py Chore: switch from os.path to pathlib.Path (#9339) 2025-04-21 12:16:52 -07:00
test_management_consumer.py Chore: switch from os.path to pathlib.Path (#10539) 2025-09-03 08:12:41 -07:00
test_management_exporter.py Chore: switch from os.path to pathlib.Path (#10539) 2025-09-03 08:12:41 -07:00
test_management_fuzzy.py Chore(deps): Bump the django group across 1 directory with 9 updates (#10538) 2025-08-11 13:45:14 -07:00
test_management_importer.py Enhancement: support import of zipped export (#10073) 2025-06-13 10:06:37 -07:00
test_management_retagger.py Enhancement: add --id-range for document_retagger (#4080) 2023-09-08 17:33:24 +00:00
test_management_superuser.py Fixes ruff not running isort against the codebase 2023-04-26 09:35:27 -07:00
test_management_thumbnails.py Chore: switch from os.path to pathlib.Path (#9060) 2025-03-05 21:06:01 +00:00
test_matchables.py Chore: Enable ruff FBT (#8645) 2025-02-07 09:12:03 -08:00
test_migration_archive_files.py Chore: switch from os.path to pathlib.Path (#10539) 2025-09-03 08:12:41 -07:00
test_migration_consumption_templates.py Feature: Workflows (#5121) 2024-01-03 08:19:19 +00:00
test_migration_created.py Resolve test timezone warnings 2025-05-21 00:51:53 -07:00
test_migration_custom_field_selects.py Feature: email, webhook workflow actions (#8108) 2024-12-03 00:12:40 +00:00
test_migration_customfields.py Fix: add permissions for custom fields with migration (#4513) 2023-11-06 08:05:35 -08:00
test_migration_document_pages_count.py Chore: switch from os.path to pathlib.Path (#9339) 2025-04-21 12:16:52 -07:00
test_migration_encrypted_webp_conversion.py Chore: Drop Python 3.9 support (#7774) 2024-09-26 12:22:24 -07:00
test_migration_mime_type.py Chore: switch from os.path to pathlib.Path (#10397) 2025-08-06 10:50:42 -07:00
test_migration_remove_null_characters.py Upgrades black to v23, upgrades ruff 2023-04-26 09:35:27 -07:00
test_migration_storage_path_template.py Feature: Enhanced templating for filename format (#7836) 2024-10-06 12:54:01 -07:00
test_migration_tag_colors.py Upgrades black to v23, upgrades ruff 2023-04-26 09:35:27 -07:00
test_migration_webp_conversion.py Chore: Drop Python 3.9 support (#7774) 2024-09-26 12:22:24 -07:00
test_migration_workflows.py Chore(deps): Bump the django group across 1 directory with 9 updates (#10538) 2025-08-11 13:45:14 -07:00
test_models.py Standarizes the imports across all the files and modules (#4248) 2023-09-23 20:17:01 -07:00
test_parsers.py Fixes ruff not running isort against the codebase 2023-04-26 09:35:27 -07:00
test_sanity_check.py Fix: ignore logo file from sanity checker (#9946) 2025-05-16 17:30:34 -07:00
test_task_signals.py Enhancement: system status report sanity check, simpler classifier check, styling updates (#9106) 2025-02-26 22:12:20 +00:00
test_tasks.py Chore: switch from os.path to pathlib.Path (#9060) 2025-03-05 21:06:01 +00:00
test_views.py Chore: switch from os.path to pathlib.Path (#9060) 2025-03-05 21:06:01 +00:00
test_workflows.py Enhancement: support webhook restrictions (#10555) 2025-08-11 10:15:30 -07:00
utils.py Chore: refactor consumer plugin checks to a pre-flight plugin (#9994) 2025-06-03 19:28:49 +00:00