Trenton H
48d97b78bb
Chore: Move model factories to the shared test layer ( #14170 )
...
The model factories lived in the documents test package, but three other
apps needed them. The AI, mail and testing suites all reached across an app
boundary to import from documents.tests.factories, which made a private test
package into a shared dependency.
The factories now live in the shared testing package, where cross-app use is
the intended use.
2026-09-21 10:57:11 -07:00
Trenton H
b38d112691
Chore: Convert more testing to pytest style ( #12678 )
2026-04-30 11:40:11 -07:00
aed9abe48c
Feature: Replace Whoosh with tantivy search backend ( #12471 )
...
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
Co-authored-by: Antoine Mérino <3023499+Merinorus@users.noreply.github.com >
2026-04-02 12:38:22 -07:00
shamoon
3efc9a5733
Fix: use effective content for matching and suggestion content ( #12293 )
2026-03-10 23:45:56 +00:00
Sebastian Steinbeißer
3b5ffbf9fa
Chore(mypy): Annotate None returns for typing improvements ( #11213 )
2026-02-02 08:44:12 -08:00
shamoon
9bdbfd362f
Merge commit from fork
...
* Add safe regex matching with timeouts and validation
* Remove redundant length check
* Remove timeouterror workaround
2025-12-12 09:28:47 -08:00
Sebastian Steinbeißer
e560fa3be0
Chore: Enable ruff FBT ( #8645 )
2025-02-07 09:12:03 -08:00
shamoon
51b0f6e325
Fix: remove outdated admin logentry handler ( #8580 )
2025-01-01 10:11:54 -08:00
Trenton H
fba416e8e1
Fixes a corrupted index not being handled by whoosh.create_in ( #5950 )
2024-02-29 00:07:17 +00:00
Trenton Holmes
650c816a7b
Removes support for Python 3.8 and lower from the code base
2023-09-10 11:42:59 -07:00
Trenton H
6f163111ce
Upgrades black to v23, upgrades ruff
2023-04-26 09:35:27 -07:00
Trenton H
3bcbd05252
Fixes ruff not running isort against the codebase
2023-04-26 09:35:27 -07:00
Trenton H
ce41ac9158
Configures ruff as the one stop linter and resolves warnings it raised
2023-04-01 17:03:52 -07:00
Brandon Rothweiler
7610a0459e
Add test
2023-02-22 09:39:29 -05:00
Trenton Holmes
3003bdd507
Runs pyupgrade to Python 3.8+ and adds a hook for it
2022-05-06 09:04:08 -07:00
Daniel Breitlauch
2b5562e376
adding case-sensitive tests
2022-04-01 21:15:30 +02:00
Trenton Holmes
1771d18a21
Runs the pre-commit hooks over all the Python files
2022-03-11 11:34:28 -08:00
Trenton Holmes
85b210ebf6
Reduces number of warnings from testing from 165 to 128. In doing so, fixes a few minor things in the decrypt and export commands
2022-03-10 18:12:48 -08:00
kpj
fc695896dd
Format Python code with black
2022-02-27 15:26:41 +01:00
jonaswinkler
d093c004fb
fixes #161
2021-01-13 17:17:23 +01:00
jonaswinkler
4bf0d834a0
improved test cases. Python 3.6 compatibility.
2020-11-26 22:17:14 +01:00
Jonas Winkler
41650f20f4
mime type handling
2020-11-20 13:31:03 +01:00
Jonas Winkler
11af74ba36
unified document matching, legacy and automatching work alongside now
2020-10-28 11:45:11 +01:00
Jonas Winkler
65e87c116f
removed reminders, changed a bunch of stuff
2020-10-20 00:35:27 +02:00
Jonas Winkler
292959d856
layout changes, removed irrelevant test cases
2019-05-23 18:25:23 +02:00
Daniel Quinn
5342db6ada
Fix pycodestyle complaints
...
Apparently, pycodestyle updated itself to now check for invalid escape
sequences, which only complain if the regex in use isn't a raw string
(r"").
2018-09-09 20:00:12 +01:00
CkuT
3aafabba26
Fix LogEntry user when PAPERLESS_DISABLE_LOGIN is set to true
2018-04-17 21:03:18 +02:00
CkuT
1d162dc769
Add test case
2018-03-13 19:27:59 +01:00
Daniel Quinn
870357968a
Fix tests to run on boxes with post-consume-scripts set
2018-01-06 17:23:24 +00:00
ishirav
d1c8241947
break long lines (pep8)
2017-12-23 07:39:40 +02:00
ishirav
4c38b28469
break long lines (pep8)
2017-12-23 06:59:48 +02:00
ishirav
83746a9aeb
Add tests and improve whitespace handling
2017-12-23 06:37:00 +02:00
jgysland
6ce27d225d
add fuzzy matching + tests
2017-04-29 17:13:04 -04:00
Daniel Quinn
aea9ea50e5
Better naming
2016-03-28 14:18:57 +01:00
Daniel Quinn
b4e648e1e3
Test All The Things
2016-03-28 14:16:26 +01:00