mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-08-04 08:56:11 -07:00
Core: Allow running unit tests scoped to specific worlds (#6290)
This allows the unit tests to be run on specific worlds only, it works by using an environment variable AP_TEST_WORLDS which is a comma separated list of world directories.
This commit is contained in:
+1
-1
@@ -202,7 +202,7 @@ class WorldTestBase(unittest.TestCase):
|
||||
if not (self.run_default_tests and self.constructed):
|
||||
return
|
||||
with self.subTest("Game", game=self.game, seed=self.multiworld.seed):
|
||||
state = self.multiworld.get_all_state(False)
|
||||
state = self.multiworld.get_all_state()
|
||||
for location in self.multiworld.get_locations():
|
||||
with self.subTest("Location should be reached", location=location.name):
|
||||
reachable = location.can_reach(state)
|
||||
|
||||
Reference in New Issue
Block a user