Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.

Conversation

@BastianPoe
Copy link
Contributor

Fixes #651

@BastianPoe BastianPoe marked this pull request as draft May 14, 2020 20:32
@BastianPoe BastianPoe force-pushed the bugfix-651 branch 6 times, most recently from f0ce21b to 8182593 Compare May 14, 2020 21:35
@BastianPoe BastianPoe marked this pull request as ready for review May 14, 2020 21:39
Turns out, that override_settings is actually keeping the override for
following test cases (even if you disable them). This leads to an
overriden MEDIA_ROOT that no longer exists. test_file_deletion does not
do any file operations, but find_renamed_document was assuming the
MEDIA_ROOT is actually exist.
…ttings work as it should.

Quote from https://docs.djangoproject.com/en/3.0/topics/testing/tools/#django.test.override_settings:
Finally, avoid aliasing your settings as module-level constants as override_settings() won’t work on such values since they are only evaluated the first time the module is imported.
@tido-
Copy link
Contributor

tido- commented Aug 14, 2020

@MasterofJOKers will you kindly spend 5 minutes?
grafik

@BastianPoe
Copy link
Contributor Author

@MasterofJOKers @pitkley @danielquinn, could anyone of you please review this PR? It is open for several month now and I would like to close this issue. This is time-critical, as this addresses a bug currently found on master.r

@MasterofJOKers MasterofJOKers merged commit a261bba into the-paperless-project:master Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consumer does not create directories for PAPERLESS_FILENAME_FORMAT

4 participants