Skip to content

Commit

Permalink
Merge pull request #48 from randovania/feature/test-brfld
Browse files Browse the repository at this point in the history
Test build/parse of brfld
  • Loading branch information
henriquegemignani authored Aug 1, 2023
2 parents d2c3ac3 + deeebe1 commit d10b7c3
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions tests/formats/test_brfld.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit d10b7c3

Please sign in to comment.