def setUpClass(cls): cls.rom = direct_load_rom() pokemontools.wram.wram_labels = {} with mock.patch("pokemontools.crystal.read_engine_flags", return_value={}): with mock.patch("pokemontools.crystal.read_event_flags", return_value={}): with mock.patch("pokemontools.crystal.setup_wram_labels", return_value={}): parse_rom(rom=cls.rom, _skip_wram_labels=True, _parse_map_header_at=old_parse_map_header_at, debug=False)
def setUpClass(cls): global rom cls.rom = direct_load_rom() rom = cls.rom