From b01cbc9aa08a51a63b1719e71335d140ce73a432 Mon Sep 17 00:00:00 2001 From: phail Date: Sat, 12 Nov 2022 15:48:30 +0100 Subject: [PATCH] add conditions to unittests --- .../tests/samples/sample.html.pdf.webp | Bin 0 -> 2830 bytes src/paperless_mail/tests/test_parsers.py | 88 ++++++++++++++---- src/paperless_mail/tests/test_parsers_live.py | 65 ++++++++++--- 3 files changed, 123 insertions(+), 30 deletions(-) create mode 100644 src/paperless_mail/tests/samples/sample.html.pdf.webp diff --git a/src/paperless_mail/tests/samples/sample.html.pdf.webp b/src/paperless_mail/tests/samples/sample.html.pdf.webp new file mode 100644 index 0000000000000000000000000000000000000000..534157660b25e9bf210b2ab898aff969aa8a655b GIT binary patch literal 2830 zcmeH|`8yN}7sqETWxb89vDAc7#HEptbyQ=Gu{R`ZgX~+jJBr5IXfl*7jA)Q3M3H4^ zkm_QxWM4*>>?6y_Fyrmsclq)C1K#I7zkHwboacO>@8|q-Y)p-ej_?BjD8tKE*Q_o| zGx-33jc`B#P;ndB!J(gSQfyvAg33y#n@Cp+^ZEqNM7p2qua`~g97ihbD6x%KztL^?j`GK^)VAUB#&At?w_~i|vi!h}B_#U-DcT-xV1-+!;9h2`&bDYTtPm6JQkA zzlsOmu3*TM1YR&Pc)htp<1`>B;YvU%h4Na19?+=}pKiasD~b8UPJ`%1ZH~gw;~F!I zKW4lBYJW+b8^DhH?DTKfHsza>91Z?9_-jG~a<+&;TJ_5xfT)(>2x2wABAGaA84d6I zwJLQV-GKfvGu?-9cnuvirBt*fLxxlyc-UA0U-^NmPKP18(&kNQ!vtk&dK~>`T^!P> z0o8`QI%NVW`3Y9v9_)1WByqIeFk zbXIgK`?5Yns^#whe}yCB9yidU7qs0mSNZpXA#`%Vt z7E1SH@#)0LXUA7)DsRKq_U`VRyC{sQCYLo)wd>cXZO_A;>tzJDy$-8fGy2}BH=s0l zOf(AHM^h@IUp>NP-Yibj8IdC90I&yr+fn`Dini?6LEhy2D?ZIog{*i2NpHhjnm->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