1
Fork 0
mirror of https://github.com/Steffo99/flyingsnake.git synced 2024-12-22 14:44:17 +00:00
flyingsnake/tests/test_flyingsnake.py

12 lines
399 B
Python
Raw Normal View History

2019-09-28 20:32:02 +00:00
import pytest
import flyingsnake
from click.testing import CliRunner
from PIL import Image
# Main integration test
def test_full_render():
runner = CliRunner()
2019-09-28 22:58:42 +00:00
result = runner.invoke(flyingsnake.flyingsnake, ["./tests/Small_Example.wld", "./tests/Small_Example_full.png"])
assert Image.open("./tests/Small_Example_full.png") == Image.open("./tests/Small_Example_full_prerendered.png")