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

11 lines
399 B
Python

import pytest
import flyingsnake
from click.testing import CliRunner
from PIL import Image
# Main integration test
def test_full_render():
runner = CliRunner()
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")