From 583f05af2db22325d7fac65b4fd70e604b6bb9e5 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Thu, 26 Jan 2023 08:23:11 -0800 Subject: [PATCH] Fixes test parameters --- src/paperless_mail/tests/test_parsers.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/paperless_mail/tests/test_parsers.py b/src/paperless_mail/tests/test_parsers.py index e02267970..809a1192f 100644 --- a/src/paperless_mail/tests/test_parsers.py +++ b/src/paperless_mail/tests/test_parsers.py @@ -573,8 +573,8 @@ class TestParser(TestCase): self.parser.gotenberg_server + "/forms/chromium/convert/html", mock_post.call_args.args[0], ) - self.assertEqual({}, mock_post.call_args.kwargs["headers"]) - self.assertEqual( + self.assertDictEqual({}, mock_post.call_args.kwargs["headers"]) + self.assertDictEqual( { "marginTop": "0.1", "marginBottom": "0.1", @@ -583,6 +583,7 @@ class TestParser(TestCase): "paperWidth": "8.27", "paperHeight": "11.7", "scale": "1.0", + "pdfFormat": "PDF/A-2b", }, mock_post.call_args.kwargs["data"], ) @@ -663,8 +664,8 @@ class TestParser(TestCase): self.parser.gotenberg_server + "/forms/chromium/convert/html", mock_post.call_args.args[0], ) - self.assertEqual({}, mock_post.call_args.kwargs["headers"]) - self.assertEqual( + self.assertDictEqual({}, mock_post.call_args.kwargs["headers"]) + self.assertDictEqual( { "marginTop": "0.1", "marginBottom": "0.1",