Commit Graph
3 Commits
Author SHA1 Message Date
stumpylog 0973ead3b8 Chore: Share the API client fixtures and build test users cheaply 2026-09-20 16:32:34 -07:00
stumpylog 78dbab0ebe Chore: Move unittest directory setup onto the shared fixture
The unittest side of the suite built its temp directory tree with
tempfile.mkdtemp and a manually enabled override_settings, cleaned up only if
tearDown ran. That is now gone. DirectoriesMixin lives alongside the layout it
bridges and does nothing but hand the paperless_dirs fixture to TestCase
subclasses as self.dirs, so both halves of the suite get the same twelve
settings, the same directory shapes and cleanup owned by tmp_path.

The mixin moves to paperless_testing.dirs rather than staying in the documents
test utilities, because modules in paperless and paperless_mail import it
across the app boundary. The thirty-eight consuming modules change only their
import line; self.dirs.scratch_dir and its siblings keep working.
2026-09-20 16:32:33 -07:00
Trenton H 0bcf904e3a Chore: Finish settings refactor (#12263) 2026-03-09 17:43:51 +00:00