285 Commits

Author SHA1 Message Date
Jonas Winkler
ce7bb51df2 test database errors. 2020-11-11 14:38:41 +01:00
Jonas Winkler
8b8a2af053 fixed the file handling implementation. The feature is cool, but the original implementation had so many small flaws it wasn't even funny. 2020-11-11 14:21:33 +01:00
Jonas Winkler
30f837d49f fixed most of the test cases 2020-11-08 13:49:15 +01:00
Jonas Winkler
548941b1bb added the filename handling back into the code 2020-11-08 13:00:45 +01:00
Jonas Winkler
340f9f141f fixed most of the tests 2020-11-02 19:42:23 +01:00
Jonas Winkler
dd16b7262e unified document matching, legacy and automatching work alongside now 2020-10-28 11:45:11 +01:00
Jonas Winkler
d3af1e8815 unified data folders 2020-10-26 00:35:24 +01:00
Jonas Winkler
d365e8ac22 removed reminders, changed a bunch of stuff 2020-10-20 00:35:27 +02:00
Jonas Winkler
b71049ad16 Merge branch 'master' into dev 2020-10-16 15:02:57 +02:00
Wolf-Bastian Poettner
bb8e3ad686 Add: ensure original directory is created and removed for each test case 2020-04-15 20:17:58 +00:00
Wolf-Bastian Poettner
0a064bfd74 Fix: testcase left unaccessible directory 2020-04-15 20:16:25 +00:00
Wolf-Bastian Poettner
3365550515 Add: more tests 2020-04-13 13:32:13 +00:00
Wolf-Bastian Poettner
679fdc407c Add: make unit test add their temporary directory to the deletion list 2020-04-13 07:13:54 +00:00
Wolf-Bastian Poettner
e2cc21f5bb Removed MEDIA_ROOT setting override for test that did not require it 2020-04-13 07:13:28 +00:00
Wolf-Bastian Poettner
8651c5f3bb 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
c83f58eec4 Remove temporary directories after failed tests 2020-04-10 13:12:17 +00:00
Wolf-Bastian Poettner
c028f7dde5 Recover from accidentally renamed files 2020-04-10 12:54:07 +00:00
Wolf-Bastian Poettner
85a0560d77 Allow filename to use tags[KEY] and tags[INDEX] 2020-03-28 21:06:17 +00:00
Wolf-Bastian Poettner
4a98808858 Ensure, that document root is not deleted 2020-03-28 21:04:07 +00:00
Wolf-Bastian Poettner
36af8c4050 Get rid of fill_list and rather use defaultdict 2020-03-28 21:04:04 +00:00
Wolf-Bastian Poettner
d2cc936392 Ensure filling in "none" when a tag has not been found 2020-02-17 21:05:34 +00:00
Wolf-Bastian Poettner
7200f3c0c5 Prevent index out of bounds for tag lists 2020-02-17 21:05:31 +00:00
Wolf-Bastian Poettner
354c833108 Ensure documents directory still exists after nested deletion 2020-02-17 19:49:47 +00:00
Wolf-Bastian Poettner
7391f5c1a2 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
a5518a307c Unified PAPERLESS_DIRECTORY_FORMAT and PAPERLESS_FILENAME_FORMAT into
one configuration setting
2020-02-01 20:09:36 +00:00
Wolf-Bastian Poettner
64c1a74821 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
985350d715 Refactored source_filename_new into generate_source_filename and
create_source_directory
2020-02-01 13:52:27 +00:00
Wolf-Bastian Poettner
6d93889801 Add unit tests for filename feature 2019-12-27 14:25:38 +00:00
Michael Gmelin
658e73d79a Add unit test for PAPERLESS_FILENAME_PARSE_TRANSFORMS feature. 2019-09-08 20:58:13 +02:00
Jonas Winkler
8cb25069d7 layout changes, removed irrelevant test cases 2019-05-23 18:25:23 +02:00
Daniel Quinn
6b63ce9201 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
Daniel Quinn
284ff69539 Fix #384: duplicate tags due to case insensitivity 2018-09-02 20:48:51 +01:00
Daniel Quinn
3ec1dd656e Add check for changed password
These tests are incomplete, but I have no idea how to write the other
half.
2018-05-28 12:58:28 +01:00
Daniel Quinn
1522af2ea5 Clean up test formatting a bit 2018-04-22 16:28:21 +01:00
Daniel Quinn
fe5d55d2d1 Don't explode on invalid dates 2018-04-22 16:27:43 +01:00
CkuT
0c28a5329c Fix LogEntry user when PAPERLESS_DISABLE_LOGIN is set to true 2018-04-17 21:03:18 +02:00
CkuT
9bf3454cbf Add test case 2018-03-13 19:27:59 +01:00
Ovv
2262a6ec28 use tmp dir 2018-03-03 18:43:20 +00:00
Ovv
b10c2c770c style & test 2018-03-03 18:43:20 +00:00
Daniel Quinn
0d9d7460c6 Fix tests to run on boxes with post-consume-scripts set 2018-01-06 17:23:24 +00:00
ishirav
a3492fdc87 break long lines (pep8) 2017-12-23 07:39:40 +02:00
ishirav
9af7a00f82 break long lines (pep8) 2017-12-23 06:59:48 +02:00
ishirav
d6baea871b Add tests and improve whitespace handling 2017-12-23 06:37:00 +02:00
Daniel Quinn
fb4407fe65 Allow correspondents to be deleted without deleting their documents
Fixes #235
2017-07-15 19:13:10 +01:00
Daniel Quinn
cd21c9c451 Detect .tif files properly
Fixes #232
2017-07-15 19:02:11 +01:00
CkuT
909fa3579c Use constants for manifest 2017-05-08 14:54:48 +02:00
jgysland
507afe9e93 add fuzzy matching + tests 2017-04-29 17:13:04 -04:00
Daniel Quinn
a5675edd6b fix: travis doesn't like my new tests 2017-03-28 21:23:42 +00:00
Daniel Quinn
e7d4ca92ba fix: allow for caps in file name suffixes #206
@schinkelg ran aground of this one and I took the opportunity to add a
test to catch this sort of thing for next time.
2017-03-28 21:14:24 +00:00
Daniel Quinn
083ed3c7a3 fix: pep8 + travis & tox env updates 2017-03-25 15:10:51 +00:00