21 Commits

Author SHA1 Message Date
Jonas Winkler
9067a4f288 added the filename handling back into the code 2020-11-08 13:00:45 +01:00
Jonas Winkler
c596fe6782 unified data folders 2020-10-26 00:35:24 +01:00
Wolf-Bastian Poettner
ea8dd2c1d9 Add: ensure original directory is created and removed for each test case 2020-04-15 20:17:58 +00:00
Wolf-Bastian Poettner
dfd6ca2b56 Fix: testcase left unaccessible directory 2020-04-15 20:16:25 +00:00
Wolf-Bastian Poettner
4772480c83 Add: more tests 2020-04-13 13:32:13 +00:00
Wolf-Bastian Poettner
af3f421579 Add: make unit test add their temporary directory to the deletion list 2020-04-13 07:13:54 +00:00
Wolf-Bastian Poettner
6e3e066116 Removed MEDIA_ROOT setting override for test that did not require it 2020-04-13 07:13:28 +00:00
Wolf-Bastian Poettner
db6f423ca7 Add: Ability to specifically remove temporary directories that have been used by a unit test 2020-04-13 07:12:48 +00:00
Wolf-Bastian Poettner
ab908fee43 Remove temporary directories after failed tests 2020-04-10 13:12:17 +00:00
Wolf-Bastian Poettner
f64b5bf737 Recover from accidentally renamed files 2020-04-10 12:54:07 +00:00
Wolf-Bastian Poettner
07bb9aa723 Allow filename to use tags[KEY] and tags[INDEX] 2020-03-28 21:06:17 +00:00
Wolf-Bastian Poettner
845313db52 Ensure, that document root is not deleted 2020-03-28 21:04:07 +00:00
Wolf-Bastian Poettner
7f1e1052fe Get rid of fill_list and rather use defaultdict 2020-03-28 21:04:04 +00:00
Wolf-Bastian Poettner
1ce94348d8 Ensure filling in "none" when a tag has not been found 2020-02-17 21:05:34 +00:00
Wolf-Bastian Poettner
1e102efaf8 Prevent index out of bounds for tag lists 2020-02-17 21:05:31 +00:00
Wolf-Bastian Poettner
0ac93e8891 Ensure documents directory still exists after nested deletion 2020-02-17 19:49:47 +00:00
Wolf-Bastian Poettner
d8fda64cd0 Tags in filenames can now either be found by key (in case - or _ are
used as delimeter) or by index. Added some more tests.
2020-02-01 20:58:44 +00:00
Wolf-Bastian Poettner
6a671ebd22 Unified PAPERLESS_DIRECTORY_FORMAT and PAPERLESS_FILENAME_FORMAT into
one configuration setting
2020-02-01 20:09:36 +00:00
Wolf-Bastian Poettner
86a51c6fa5 Refactored delete_empty_directory into try_delete_empty_directories and
implemented feature to ensure, that all created and now empty
directories are really deleted
2020-02-01 20:03:20 +00:00
Wolf-Bastian Poettner
bcff75433c Refactored source_filename_new into generate_source_filename and
create_source_directory
2020-02-01 13:52:27 +00:00
Wolf-Bastian Poettner
1ce6c6e2c5 Add unit tests for filename feature 2019-12-27 14:25:38 +00:00