From deeebe1baba3325254656cbc42b80ee4bee58449 Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Tue, 1 Aug 2023 21:46:13 +0300 Subject: [PATCH] Test build/parse of brfld --- tests/formats/test_brfld.py | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/tests/formats/test_brfld.py b/tests/formats/test_brfld.py index 2cf8b1f3..ce244832 100644 --- a/tests/formats/test_brfld.py +++ b/tests/formats/test_brfld.py @@ -1,10 +1,22 @@ -from tests.test_lib import parse_and_build_compare +import pytest +from tests.test_lib import parse_build_compare_editor from mercury_engine_data_structures.formats.brfld import BRFLD -from mercury_engine_data_structures.game_check import Game +all_brfld = [ + "maps/levels/c10_samus/s010_cave/s010_cave.brfld", + "maps/levels/c10_samus/s020_magma/s020_magma.brfld", + "maps/levels/c10_samus/s030_baselab/s030_baselab.brfld", + "maps/levels/c10_samus/s040_aqua/s040_aqua.brfld", + "maps/levels/c10_samus/s050_forest/s050_forest.brfld", + "maps/levels/c10_samus/s060_quarantine/s060_quarantine.brfld", + "maps/levels/c10_samus/s070_basesanc/s070_basesanc.brfld", + "maps/levels/c10_samus/s080_shipyard/s080_shipyard.brfld", + "maps/levels/c10_samus/s090_skybase/s090_skybase.brfld", -def test_compare_dread(dread_path): - parse_and_build_compare( - BRFLD, Game.DREAD, dread_path.joinpath("packs/maps/s090_skybase/s090_skybase.brfld") - ) +] + + +@pytest.mark.parametrize("brfld_path", all_brfld) +def test_brfld(dread_file_tree, brfld_path): + parse_build_compare_editor(BRFLD, dread_file_tree, brfld_path)