mirror of
https://github.com/Steffo99/flyingsnake.git
synced 2024-12-22 06:34:18 +00:00
11 lines
375 B
Python
11 lines
375 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, ["./Small_Example.wld", "./Small_Example_full.png"])
|
|
assert Image.open("./Small_Example_full.png") == Image.open("./Small_Example_full_prerendered.png")
|