Commit Graph
67 Commits
Author SHA1 Message Date
phail 073c3c8fed use html.escape instead of some self build functions 2022-11-20 12:36:49 +01:00
phail e3c1bde793 remove log mocking, replace pytest raises, use humanfriendly 2022-11-20 12:06:35 +01:00
phail 1578e8de2d fix live tests 2022-11-13 22:33:26 +01:00
phail b01cbc9aa0 add conditions to unittests 2022-11-12 15:48:30 +01:00
phail 3de6e0bcf1 put parser into setup
make test using convert optional
Gotenberg live testing
2022-11-03 00:58:36 +01:00
phail 2204090151 fix string 2022-10-27 23:53:47 +02:00
phail 3c81a7468b replace thumbnail creation with mock 2022-10-27 23:41:29 +02:00
phail 90cb0836bb Downgrade pdf validation to text only 2022-10-27 23:11:41 +02:00
phail ef1d4264b5 improve test coverage a little 2022-10-27 00:27:15 +02:00
phail 0da0b1c062 update variable names 2022-10-23 21:39:15 +02:00
phail 08988e11f8 Merge remote-tracking branch 'paperless/dev' into feature-consume-eml 2022-10-23 20:37:22 +02:00
phail 30372b0e85 add tests for mail_to_html and generate_pdf_from_mail 2022-10-23 17:18:10 +02:00
phail 567e89d1c7 test for broken eml, add test_generate_pdf 2022-10-22 02:25:23 +02:00
phail f1f5227ccd add unittest for external images 2022-10-22 00:44:32 +02:00
phail 09b5bd17f2 add unittest for generate_pdf_from_html 2022-10-19 23:19:33 +02:00
phail e384bd78c5 add unittest for transform_inline_html 2022-10-18 23:48:07 +02:00
phail fda844f64c add unittest for parse 2022-10-15 15:41:43 +02:00
phail daf90399bd Add unitest for tika_parse() 2022-10-15 13:13:29 +02:00
phail 3d37e49c1a add 2 more tests 2022-10-14 15:43:43 +02:00
phail 261c6fb990 add unittest for get_thumbnail 2022-10-13 01:03:09 +02:00
shamoonandGitHub 6f50285f47 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 97ceb1a8a6 Enable some testing against a real email server to hopefully catch things earlier 2022-10-07 18:28:11 -07:00
Trenton H 55089aab32 Fixes handling of gmail label extension to IMAP 2022-10-07 18:28:11 -07:00
Trenton Holmes 9247300230 Transitions the backend to celery and celery beat 2022-09-26 11:25:34 -07:00
Trenton Holmes bd18a57a5d Updates imap_tools and updates to use the new login method for UTF-8 2022-09-01 08:54:44 -07:00
StefanandTrenton Holmes fccea022fa adapt test to respect gmail_label keyword 2022-08-20 13:15:38 -07:00
StefanandTrenton Holmes 260b709296 add test for gmail account tag handling 2022-08-20 13:15:38 -07:00
StefanandTrenton Holmes 9bb762fc8f fix mail tests 2022-08-20 13:15:38 -07:00
Oliver Rümpelein ac62bcb7ba Clear cache instead of working around it. 2022-05-27 22:51:32 +02:00
Oliver Rümpelein c90129957e Make test work. 2022-05-26 12:42:20 +02:00
Oliver Rümpelein 104a684514 Revert all changes to tests, will need a more structured approach. 2022-05-25 20:47:43 +02:00
Oliver Rümpelein 5a809d7e31 Add first draft implementation, test broken. 2022-05-25 19:23:52 +02:00
Trenton Holmes 3003bdd507 Runs pyupgrade to Python 3.8+ and adds a hook for it 2022-05-06 09:04:08 -07:00
Quinn CaseyandGitHub 0f1e31643d 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 f5c05e1283 Fixes newly added mail tests to account for model change 2022-04-26 10:03:41 -07:00
Trenton Holmes 330e47f0b7 Adds some logging so we know which login method has failed 2022-04-26 09:41:36 -07:00
Trenton Holmes 1e9378b429 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 816f020cc3 Fixes tests with imap-tools 0.54.0 changes to the EmailAddress class 2022-04-26 08:11:25 -07:00
Trenton Holmes eb8158673f Fixes backend testing of mail on dev 2022-04-25 11:10:32 -07:00
Michael Shamoon 654ef06682 Merge branch 'main' into dev 2022-04-25 10:33:40 -07:00
Trenton Holmes 33134d4529 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 616a826b8a fix Mail actions mixup 2022-04-19 00:59:57 +02:00
jonasc 37f7ef41f2 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
shamoonandGitHub 8f98cb4860 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 8f18b7fd6c Fixes the matching of attachment files names to patterns 2022-04-08 13:42:42 -07:00
Trenton Holmes f358eda5c5 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 9544e6c757 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 4f287b5ecd Fixes the EmailAddress which was a dict and is now a class 2022-03-15 14:00:01 -07:00
Trenton Holmes 1771d18a21 Runs the pre-commit hooks over all the Python files 2022-03-11 11:34:28 -08:00
Johannes Schöpp 0925c90047 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