Linux native client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
638 B

"""Forest placeholder art bytes."""
from imwald.core.forest_avatar import build_forest_avatar_png, build_forest_banner_png
def test_forest_avatar_png_magic() -> None:
b = build_forest_avatar_png()
assert b.startswith(b"\x89PNG\r\n\x1a\n")
def test_forest_banner_png_magic_and_seed_variation() -> None:
a = build_forest_banner_png(seed=1)
b = build_forest_banner_png(seed=2)
assert a.startswith(b"\x89PNG\r\n\x1a\n")
assert b.startswith(b"\x89PNG\r\n\x1a\n")
assert a != b
def test_forest_avatar_seed_changes_bytes() -> None:
assert build_forest_avatar_png(seed=1) != build_forest_avatar_png(seed=2)