mirror of
https://github.com/KevinMidboe/knowit_julekalender-2018.git
synced 2025-10-29 17:50:19 +00:00
test for day 4
This commit is contained in:
BIN
tests/images/solution-pokemon_jakt.png
Normal file
BIN
tests/images/solution-pokemon_jakt.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -1,2 +1,12 @@
|
|||||||
|
import os
|
||||||
|
from PIL import Image
|
||||||
|
from luke_04.LSB import main
|
||||||
|
|
||||||
|
path = os.path.dirname(__file__)
|
||||||
|
|
||||||
def test_answer():
|
def test_answer():
|
||||||
assert False
|
solution_path = os.path.join(path, 'images/solution-pokemon_jakt.png')
|
||||||
|
solution_image = Image.open(solution_path)
|
||||||
|
answer_image = Image.open(main())
|
||||||
|
|
||||||
|
assert solution_image.tobytes == answer_image.tobytes
|
||||||
|
|||||||
Reference in New Issue
Block a user