]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fixes test parameters
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Thu, 26 Jan 2023 16:23:11 +0000 (08:23 -0800)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Fri, 27 Jan 2023 19:05:23 +0000 (11:05 -0800)
src/paperless_mail/tests/test_parsers.py

index e022679701090ff2c8f8fa2798ce28297e3dfb87..809a1192f723e7fdf0a6c8cb39691effee3b7c4e 100644 (file)
@@ -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",