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"))