From 688960804b5fe00d6236f6624c44a6efa5fbdbb5 Mon Sep 17 00:00:00 2001 From: Thanatos Date: Mon, 23 Dec 2024 22:36:56 +0100 Subject: [PATCH] Add test case --- tests/formats/test_bmssd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/formats/test_bmssd.py b/tests/formats/test_bmssd.py index c6c9f75..0059b5d 100644 --- a/tests/formats/test_bmssd.py +++ b/tests/formats/test_bmssd.py @@ -121,6 +121,9 @@ def test_bmssd_dread_functions(dread_tree_100): bmssd.remove_item(random_obj, ItemType.SCENE_BLOCK) assert bmssd.scene_groups_for_item(random_obj, ItemType.SCENE_BLOCK) == [] + # try to get a non-existent object + assert bmssd.scene_groups_for_item("foo", ItemType.LIGHT) == [] + # PART 4: make sure it can actually build and parse lol con = Bmssd.construct_class(target_game=Game.DREAD) built = con.build(bmssd.raw, target_game=Game.DREAD)