mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
Fixes test parameters
This commit is contained in:
parent
1b2cb13a21
commit
583f05af2d
1 changed files with 5 additions and 4 deletions
|
|
@ -573,8 +573,8 @@ class TestParser(TestCase):
|
||||||
self.parser.gotenberg_server + "/forms/chromium/convert/html",
|
self.parser.gotenberg_server + "/forms/chromium/convert/html",
|
||||||
mock_post.call_args.args[0],
|
mock_post.call_args.args[0],
|
||||||
)
|
)
|
||||||
self.assertEqual({}, mock_post.call_args.kwargs["headers"])
|
self.assertDictEqual({}, mock_post.call_args.kwargs["headers"])
|
||||||
self.assertEqual(
|
self.assertDictEqual(
|
||||||
{
|
{
|
||||||
"marginTop": "0.1",
|
"marginTop": "0.1",
|
||||||
"marginBottom": "0.1",
|
"marginBottom": "0.1",
|
||||||
|
|
@ -583,6 +583,7 @@ class TestParser(TestCase):
|
||||||
"paperWidth": "8.27",
|
"paperWidth": "8.27",
|
||||||
"paperHeight": "11.7",
|
"paperHeight": "11.7",
|
||||||
"scale": "1.0",
|
"scale": "1.0",
|
||||||
|
"pdfFormat": "PDF/A-2b",
|
||||||
},
|
},
|
||||||
mock_post.call_args.kwargs["data"],
|
mock_post.call_args.kwargs["data"],
|
||||||
)
|
)
|
||||||
|
|
@ -663,8 +664,8 @@ class TestParser(TestCase):
|
||||||
self.parser.gotenberg_server + "/forms/chromium/convert/html",
|
self.parser.gotenberg_server + "/forms/chromium/convert/html",
|
||||||
mock_post.call_args.args[0],
|
mock_post.call_args.args[0],
|
||||||
)
|
)
|
||||||
self.assertEqual({}, mock_post.call_args.kwargs["headers"])
|
self.assertDictEqual({}, mock_post.call_args.kwargs["headers"])
|
||||||
self.assertEqual(
|
self.assertDictEqual(
|
||||||
{
|
{
|
||||||
"marginTop": "0.1",
|
"marginTop": "0.1",
|
||||||
"marginBottom": "0.1",
|
"marginBottom": "0.1",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue