Skip to content

Commit

Permalink
(agrf) New test cases for get_resourcefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Jan 9, 2025
1 parent ff98e72 commit 0f0ac3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions agrf/lib/building/layout_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def test_groundsprite_fingerprint():
json.dumps(gs1012.get_fingerprint())


def test_groundsprite_get_resource_files():
assert all(isinstance(file, grf.ResourceFile) for file in gs1012.get_resource_files())


def test_parentsprite():
assert (temperate_1012 == ps1012.graphics(4, 32).to_image()).all()

Expand All @@ -75,6 +79,10 @@ def test_parentsprite_fingerprint():
json.dumps(ps1012.get_fingerprint())


def test_parentsprite_get_resource_files():
assert all(isinstance(file, grf.ResourceFile) for file in ps1012.get_resource_files())


def test_layout():
assert (temperate_1012 == l1012.graphics(4, 32).to_image()).all()

Expand Down

0 comments on commit 0f0ac3c

Please sign in to comment.