From ac2387e17cf4badcae9b543b7fdef4a78991fe8a Mon Sep 17 00:00:00 2001 From: Doug Hoskisson Date: Thu, 11 Jan 2024 15:22:04 -0800 Subject: [PATCH] Tests: remove deprecated option access from `WorldTestBase` (#2671) * remove deprecated option access from `WorldTestBase` * one in test_reachability --- test/bases.py | 2 +- test/general/test_reachability.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/bases.py b/test/bases.py index d6a43c59..7ce12cc7 100644 --- a/test/bases.py +++ b/test/bases.py @@ -285,7 +285,7 @@ class WorldTestBase(unittest.TestCase): if not (self.run_default_tests and self.constructed): return 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) for location in self.multiworld.get_locations(): if location.name not in excluded: diff --git a/test/general/test_reachability.py b/test/general/test_reachability.py index 828912ee..cfd83c94 100644 --- a/test/general/test_reachability.py +++ b/test/general/test_reachability.py @@ -37,7 +37,7 @@ class TestBase(unittest.TestCase): unreachable_regions = self.default_settings_unreachable_regions.get(game_name, set()) with self.subTest("Game", game=game_name): 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) for location in world.get_locations(): if location.name not in excluded: