110 Commits

Author SHA1 Message Date
phail
6d92b33d13 Downgrade pdf validation to text only 2022-10-27 23:11:41 +02:00
phail
739e291b2c improve test coverage a little 2022-10-27 00:27:15 +02:00
phail
b151cb7293 update variable names 2022-10-23 21:39:15 +02:00
phail
20a0ba6e57 Merge remote-tracking branch 'paperless/dev' into feature-consume-eml 2022-10-23 20:37:22 +02:00
phail
9d6b725fa1 add tests for mail_to_html and generate_pdf_from_mail 2022-10-23 17:18:10 +02:00
phail
6854896708 test for broken eml, add test_generate_pdf 2022-10-22 02:25:23 +02:00
phail
20e84558d6 add unittest for external images 2022-10-22 00:44:32 +02:00
phail
f1e0ab314d add unittest for generate_pdf_from_html 2022-10-19 23:19:33 +02:00
phail
3d58129666 add unittest for transform_inline_html 2022-10-18 23:48:07 +02:00
phail
cd8d4ce8ab add unittest for parse 2022-10-15 15:41:43 +02:00
phail
cef1a4f8b9 Add unitest for tika_parse() 2022-10-15 13:13:29 +02:00
phail
76dec120d1 add 2 more tests 2022-10-14 15:43:43 +02:00
phail
dec6e6c0b8 add unittest for get_thumbnail 2022-10-13 01:03:09 +02:00
shamoon
3b1f5668f5 Merge pull request #1648 from paperless-ngx/feature-use-celery
Feature: Transition to celery for background tasks
2022-10-10 00:07:55 -07:00
Trenton H
406dae1fca Enable some testing against a real email server to hopefully catch things earlier 2022-10-07 18:28:11 -07:00
Trenton H
6c269391d5 Fixes handling of gmail label extension to IMAP 2022-10-07 18:28:11 -07:00
Trenton Holmes
09287701ae Transitions the backend to celery and celery beat 2022-09-26 11:25:34 -07:00
Trenton Holmes
5eaae2201e Updates imap_tools and updates to use the new login method for UTF-8 2022-09-01 08:54:44 -07:00
Stefan
87cf215f3e adapt test to respect gmail_label keyword 2022-08-20 13:15:38 -07:00
Stefan
e19021dc11 add test for gmail account tag handling 2022-08-20 13:15:38 -07:00
Stefan
82751e5136 fix mail tests 2022-08-20 13:15:38 -07:00
Oliver Rümpelein
78fa05da9d Clear cache instead of working around it. 2022-05-27 22:51:32 +02:00
Oliver Rümpelein
acd525a9d9 Make test work. 2022-05-26 12:42:20 +02:00
Oliver Rümpelein
164cd19296 Revert all changes to tests, will need a more structured approach. 2022-05-25 20:47:43 +02:00
Oliver Rümpelein
cbb36e8941 Add first draft implementation, test broken. 2022-05-25 19:23:52 +02:00
Trenton Holmes
f62193099c Runs pyupgrade to Python 3.8+ and adds a hook for it 2022-05-06 09:04:08 -07:00
Quinn Casey
81582bb2e7 Merge pull request #725 from paperless-ngx/bugfix-imap-utf8-login
Fixes IMAP UTF8 Authenication
2022-04-29 10:31:38 -07:00
Trenton Holmes
a51edbf2ce Fixes newly added mail tests to account for model change 2022-04-26 10:03:41 -07:00
Trenton Holmes
47191e9690 Adds some logging so we know which login method has failed 2022-04-26 09:41:36 -07:00
Trenton Holmes
402cca2b5f Implements a fallback to AUTH=PLAIN in the event of a UnicodeEncodeError during a normal login 2022-04-26 09:41:36 -07:00
Trenton Holmes
ef3b6d9ec7 Fixes tests with imap-tools 0.54.0 changes to the EmailAddress class 2022-04-26 08:11:25 -07:00
Trenton Holmes
204cdaf175 Fixes backend testing of mail on dev 2022-04-25 11:10:32 -07:00
Michael Shamoon
421a604b92 Merge branch 'main' into dev 2022-04-25 10:33:40 -07:00
Trenton Holmes
5e95f1017b In the event of an error when setting the mail account folder, attempt to list the account's folders to the log 2022-04-19 08:32:34 -07:00
phail
753ef98eab fix Mail actions mixup 2022-04-19 00:59:57 +02:00
jonasc
cf0d3b0615 Save MailRule and MailAccount objects in tests
This fixes the errors in the tests that the new many-to-many
assign_tags property cannot be accessed due to MailRule not having an
id. In one case it it necessary to give additional names to both objects
as several are created.
2022-04-12 10:45:52 +02:00
shamoon
3505a08633 Merge pull request #550 from stumpylog/feature-mail-consume-improve-docs
Feature mail consume improve docs
2022-04-10 08:46:45 -07:00
Trenton Holmes
4443a03df0 Fixes the matching of attachment files names to patterns 2022-04-08 13:42:42 -07:00
Trenton Holmes
c36ddc27f9 Updates the mail db model to use the built-in enum capabilities and runs the migrations 2022-04-08 08:55:40 -07:00
Trenton Holmes
48c1f7795f Improves the mail handling testing to use more of the imap_tools library types instead of internal types 2022-03-15 16:25:51 -07:00
Trenton Holmes
f63805afb3 Fixes the EmailAddress which was a dict and is now a class 2022-03-15 14:00:01 -07:00
Trenton Holmes
6635fa5f0d Runs the pre-commit hooks over all the Python files 2022-03-11 11:34:28 -08:00
Johannes Schöpp
49b27d1bc6 Switched to flag()
Newer versions of imap_tools moved away from `seen()` in favour of
`flag()` and deprecated the former.

This fixes https://github.com/jonaswinkler/paperless-ng/issues/1672

I also remove the mocked `seen()` function and updated the `flag()` mock
2022-03-02 17:48:02 +01:00
kpj
c56cb25b5f Format Python code with black 2022-02-27 15:26:41 +01:00
jonaswinkler
28e1d5ea02 mail tests 2021-01-18 22:23:53 +01:00
jonaswinkler
47ebe5c263 fix test case 2021-01-11 22:11:01 +01:00
jonaswinkler
18c44c76c5 fixes #153, adds option for inline attachments and filename filters 2021-01-06 02:40:08 +01:00
jonaswinkler
6b7042ad3f fixed some issues with the test cases. 2020-12-16 13:41:02 +01:00
jonaswinkler
5a978134ff more tests 2020-12-04 15:56:26 +01:00
jonaswinkler
249422570e mail handling: When exceptions occur during account/rule/message handling, paperless will continue with the next account/rule/message.
mail handling: When paperless encounters a very long

fixes #82
2020-12-04 15:42:05 +01:00