test.py: format with black

main
parent 2262810aeb
commit 070947570d
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -117,28 +117,28 @@ _formats = {
"complex",
[
(
['0', '202.67716', '269.29136', '595.2756'],
['1.9999999', '0', '0', '1.9999999', '56.692934', '-405.35429'],
["0", "202.67716", "269.29136", "595.2756"],
["1.9999999", "0", "0", "1.9999999", "56.692934", "-405.35429"],
),
(
['212.59844', '202.67716', '510.23625', '595.2756'],
['1.9999999', '0', '0', '1.9999999', '-425.1968', '-405.35429'],
["212.59844", "202.67716", "510.23625", "595.2756"],
["1.9999999", "0", "0", "1.9999999", "-425.1968", "-405.35429"],
),
(
['449.29136', '325.98423', '841.8898', '595.2756'],
['1.9999998', '0', '0', '1.9999998', '-898.58267', '-651.9683'],
["449.29136", "325.98423", "841.8898", "595.2756"],
["1.9999998", "0", "0", "1.9999998", "-898.58267", "-651.9683"],
),
(
['331.65354', '0', '629.2913', '392.59846'],
['1.9999999', '0', '0', '1.9999999', '-663.307', '56.692934'],
["331.65354", "0", "629.2913", "392.59846"],
["1.9999999", "0", "0", "1.9999999", "-663.307", "56.692934"],
),
(
['572.59848', '0', '841.8898', '392.59846'],
['1.9999999', '0', '0', '1.9999999', '-1145.1968', '56.692934'],
["572.59848", "0", "841.8898", "392.59846"],
["1.9999999", "0", "0", "1.9999999", "-1145.1968", "56.692934"],
),
(
['0', '0', '392.59843', '269.29136'],
['2', '0', '0', '2', '56.692934', '56.69287'],
["0", "0", "392.59843", "269.29136"],
["2", "0", "0", "2", "56.692934", "56.69287"],
),
],
),
@ -176,7 +176,13 @@ def test_cases(postersize, input_pagesize, output_pagesize, strategy, expected):
fd, outfile = tempfile.mkstemp(prefix="plakativ")
os.close(fd)
plakativ.compute_layout(
infile, outfile, mode="size", size=postersize, pagesize=output_pagesize, border=(20, 20, 20, 20), strategy=strategy
infile,
outfile,
mode="size",
size=postersize,
pagesize=output_pagesize,
border=(20, 20, 20, 20),
strategy=strategy,
)
os.unlink(infile)

Loading…
Cancel
Save