From d0353973ad15c92dcd882d214b67f715439ce2fa Mon Sep 17 00:00:00 2001 From: duncathan Date: Fri, 22 Sep 2023 02:34:31 -0600 Subject: [PATCH] fixes --- src/mercury_engine_data_structures/formats/bmsbk.py | 2 ++ tests/formats/test_bmsbk.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mercury_engine_data_structures/formats/bmsbk.py b/src/mercury_engine_data_structures/formats/bmsbk.py index 87596da8..b6d9b149 100644 --- a/src/mercury_engine_data_structures/formats/bmsbk.py +++ b/src/mercury_engine_data_structures/formats/bmsbk.py @@ -11,6 +11,7 @@ Int32ul, Rebuild, Struct, + Terminated, ) from mercury_engine_data_structures.common_types import CVector3D, StrId, make_vector @@ -50,6 +51,7 @@ def _rebuild_types(ctx: Container) -> int: "name" / StrId, "entries" / make_vector(Int32ul), )), + Terminated, ) class Bmsbk(BaseResource): diff --git a/tests/formats/test_bmsbk.py b/tests/formats/test_bmsbk.py index b56ecb16..edc9be57 100644 --- a/tests/formats/test_bmsbk.py +++ b/tests/formats/test_bmsbk.py @@ -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")