From 070947570d915457e1aece7302777f8cd079cd92 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sun, 24 May 2020 01:28:11 +0200 Subject: [PATCH] test.py: format with black --- test.py | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/test.py b/test.py index c3f6ab1..2ca85a7 100644 --- a/test.py +++ b/test.py @@ -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)