forked from josch/plakativ
test.py: format with black
This commit is contained in:
parent
2262810aeb
commit
070947570d
1 changed files with 19 additions and 13 deletions
32
test.py
32
test.py
|
@ -117,28 +117,28 @@ _formats = {
|
||||||
"complex",
|
"complex",
|
||||||
[
|
[
|
||||||
(
|
(
|
||||||
['0', '202.67716', '269.29136', '595.2756'],
|
["0", "202.67716", "269.29136", "595.2756"],
|
||||||
['1.9999999', '0', '0', '1.9999999', '56.692934', '-405.35429'],
|
["1.9999999", "0", "0", "1.9999999", "56.692934", "-405.35429"],
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
['212.59844', '202.67716', '510.23625', '595.2756'],
|
["212.59844", "202.67716", "510.23625", "595.2756"],
|
||||||
['1.9999999', '0', '0', '1.9999999', '-425.1968', '-405.35429'],
|
["1.9999999", "0", "0", "1.9999999", "-425.1968", "-405.35429"],
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
['449.29136', '325.98423', '841.8898', '595.2756'],
|
["449.29136", "325.98423", "841.8898", "595.2756"],
|
||||||
['1.9999998', '0', '0', '1.9999998', '-898.58267', '-651.9683'],
|
["1.9999998", "0", "0", "1.9999998", "-898.58267", "-651.9683"],
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
['331.65354', '0', '629.2913', '392.59846'],
|
["331.65354", "0", "629.2913", "392.59846"],
|
||||||
['1.9999999', '0', '0', '1.9999999', '-663.307', '56.692934'],
|
["1.9999999", "0", "0", "1.9999999", "-663.307", "56.692934"],
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
['572.59848', '0', '841.8898', '392.59846'],
|
["572.59848", "0", "841.8898", "392.59846"],
|
||||||
['1.9999999', '0', '0', '1.9999999', '-1145.1968', '56.692934'],
|
["1.9999999", "0", "0", "1.9999999", "-1145.1968", "56.692934"],
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
['0', '0', '392.59843', '269.29136'],
|
["0", "0", "392.59843", "269.29136"],
|
||||||
['2', '0', '0', '2', '56.692934', '56.69287'],
|
["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")
|
fd, outfile = tempfile.mkstemp(prefix="plakativ")
|
||||||
os.close(fd)
|
os.close(fd)
|
||||||
plakativ.compute_layout(
|
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)
|
os.unlink(infile)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue