mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Fixing unit tests for FFR by excluding tests that use Default settings as FFR logic is controlled by the original randomizer
This commit is contained in:
@@ -10,7 +10,8 @@ class TestBase(unittest.TestCase):
|
|||||||
|
|
||||||
def testAllStateCanReachEverything(self):
|
def testAllStateCanReachEverything(self):
|
||||||
for game_name, world_type in AutoWorldRegister.world_types.items():
|
for game_name, world_type in AutoWorldRegister.world_types.items():
|
||||||
if game_name != "Ori and the Blind Forest": # TODO: fix Ori Logic
|
# Final Fantasy logic is controlled by finalfantasyrandomizer.com
|
||||||
|
if game_name != "Ori and the Blind Forest" and game_name != "Final Fantasy": # TODO: fix Ori Logic
|
||||||
with self.subTest("Game", game=game_name):
|
with self.subTest("Game", game=game_name):
|
||||||
world = setup_default_world(world_type)
|
world = setup_default_world(world_type)
|
||||||
state = world.get_all_state(False)
|
state = world.get_all_state(False)
|
||||||
@@ -20,7 +21,8 @@ class TestBase(unittest.TestCase):
|
|||||||
|
|
||||||
def testEmptyStateCanReachSomething(self):
|
def testEmptyStateCanReachSomething(self):
|
||||||
for game_name, world_type in AutoWorldRegister.world_types.items():
|
for game_name, world_type in AutoWorldRegister.world_types.items():
|
||||||
if game_name != "Archipelago":
|
# Final Fantasy logic is controlled by finalfantasyrandomizer.com
|
||||||
|
if game_name != "Archipelago" and game_name != "Final Fantasy":
|
||||||
with self.subTest("Game", game=game_name):
|
with self.subTest("Game", game=game_name):
|
||||||
world = setup_default_world(world_type)
|
world = setup_default_world(world_type)
|
||||||
state = CollectionState(world)
|
state = CollectionState(world)
|
||||||
@@ -29,4 +31,4 @@ class TestBase(unittest.TestCase):
|
|||||||
if location.can_reach(state):
|
if location.can_reach(state):
|
||||||
locations.add(location)
|
locations.add(location)
|
||||||
self.assertGreater(len(locations), 0,
|
self.assertGreater(len(locations), 0,
|
||||||
msg="Need to be able to reach at least one location to get started.")
|
msg="Need to be able to reach at least one location to get started.")
|
||||||
|
Reference in New Issue
Block a user