mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Tests: remove deprecated option access from WorldTestBase
(#2671)
* remove deprecated option access from `WorldTestBase` * one in test_reachability
This commit is contained in:
@@ -285,7 +285,7 @@ class WorldTestBase(unittest.TestCase):
|
|||||||
if not (self.run_default_tests and self.constructed):
|
if not (self.run_default_tests and self.constructed):
|
||||||
return
|
return
|
||||||
with self.subTest("Game", game=self.game):
|
with self.subTest("Game", game=self.game):
|
||||||
excluded = self.multiworld.exclude_locations[1].value
|
excluded = self.multiworld.worlds[1].options.exclude_locations.value
|
||||||
state = self.multiworld.get_all_state(False)
|
state = self.multiworld.get_all_state(False)
|
||||||
for location in self.multiworld.get_locations():
|
for location in self.multiworld.get_locations():
|
||||||
if location.name not in excluded:
|
if location.name not in excluded:
|
||||||
|
@@ -37,7 +37,7 @@ class TestBase(unittest.TestCase):
|
|||||||
unreachable_regions = self.default_settings_unreachable_regions.get(game_name, set())
|
unreachable_regions = self.default_settings_unreachable_regions.get(game_name, set())
|
||||||
with self.subTest("Game", game=game_name):
|
with self.subTest("Game", game=game_name):
|
||||||
world = setup_solo_multiworld(world_type)
|
world = setup_solo_multiworld(world_type)
|
||||||
excluded = world.exclude_locations[1].value
|
excluded = world.worlds[1].options.exclude_locations.value
|
||||||
state = world.get_all_state(False)
|
state = world.get_all_state(False)
|
||||||
for location in world.get_locations():
|
for location in world.get_locations():
|
||||||
if location.name not in excluded:
|
if location.name not in excluded:
|
||||||
|
Reference in New Issue
Block a user