Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
duncathan committed Sep 22, 2023
1 parent 722d394 commit d035397
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/mercury_engine_data_structures/formats/bmsbk.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Int32ul,
Rebuild,
Struct,
Terminated,
)

from mercury_engine_data_structures.common_types import CVector3D, StrId, make_vector
Expand Down Expand Up @@ -50,6 +51,7 @@ def _rebuild_types(ctx: Container) -> int:
"name" / StrId,
"entries" / make_vector(Int32ul),
)),
Terminated,
)

class Bmsbk(BaseResource):
Expand Down
5 changes: 4 additions & 1 deletion tests/formats/test_bmsbk.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@

@pytest.mark.parametrize("bmsbk_path", all_sr_bmsbk)
def test_bmsbk(samus_returns_tree, bmsbk_path):
parse_build_compare_editor(Bmsbk, samus_returns_tree, bmsbk_path)
try:
parse_build_compare_editor(Bmsbk, samus_returns_tree, bmsbk_path)
except FileNotFoundError:
pytest.skip(f"{bmsbk_path} does not exist")

0 comments on commit d035397

Please sign in to comment.