From 62ef828e4b86c47043d92be20d60488e72ab51d1 Mon Sep 17 00:00:00 2001 From: profitroll Date: Thu, 10 Aug 2023 14:22:10 +0200 Subject: [PATCH] Removed unused test --- tests/test_500x500.py | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/tests/test_500x500.py b/tests/test_500x500.py index 76d1786..f65266c 100644 --- a/tests/test_500x500.py +++ b/tests/test_500x500.py @@ -12,6 +12,22 @@ def test_generation(): assert isinstance(image, Image) +def test_saving(): + image = generate( + 500, + 500, + hue_max=1.0, + lum_min=0.3, + lum_max=0.6, + sat_min=0.8, + sat_max=1.0, + lines=0.0, + ) + save_image(image, Path("tests/image.jpg")) + assert Path("tests/image.jpg").exists() + remove(Path("tests/image.jpg")) + + def test_generation_example_1(): image = generate(color="lightgreen") assert isinstance(image, Image) @@ -40,27 +56,3 @@ def test_generation_example_5(): emblem=Path("tests/assets/emblem.png"), ) assert isinstance(image, Image) - - -def test_generation_example_6(): - image = generate( - width=500, - height=500, - ) - assert isinstance(image, Image) - - -def test_saving(): - image = generate( - 500, - 500, - hue_max=1.0, - lum_min=0.3, - lum_max=0.6, - sat_min=0.8, - sat_max=1.0, - lines=0.0, - ) - save_image(image, Path("tests/image.jpg")) - assert Path("tests/image.jpg").exists() - remove(Path("tests/image.jpg"))