mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Tests: datapackage and more multiworld renaming (#1454)
* Tests: add a test that created items and locations exist in the datapackage * move FF validation to `assert_generate` and remove test exclusion * test created location addresses are correct * make the assertion proper and more verbose * make item count test ~~a bit faster~~ a lot nicer * 120 blaze it * name test multiworld setup better and fix another over 120 line in FFR
This commit is contained in:
@@ -3,7 +3,7 @@ import unittest
|
||||
from BaseClasses import CollectionState
|
||||
from worlds.AutoWorld import AutoWorldRegister
|
||||
|
||||
from . import setup_default_world
|
||||
from . import setup_solo_multiworld
|
||||
|
||||
|
||||
class TestBase(unittest.TestCase):
|
||||
@@ -12,9 +12,9 @@ class TestBase(unittest.TestCase):
|
||||
def testAllStateCanReachEverything(self):
|
||||
for game_name, world_type in AutoWorldRegister.world_types.items():
|
||||
# Final Fantasy logic is controlled by finalfantasyrandomizer.com
|
||||
if game_name not in {"Ori and the Blind Forest", "Final Fantasy"}: # TODO: fix Ori Logic
|
||||
if game_name not in {"Ori and the Blind Forest"}: # TODO: fix Ori Logic
|
||||
with self.subTest("Game", game=game_name):
|
||||
world = setup_default_world(world_type)
|
||||
world = setup_solo_multiworld(world_type)
|
||||
excluded = world.exclude_locations[1].value
|
||||
state = world.get_all_state(False)
|
||||
for location in world.get_locations():
|
||||
@@ -28,9 +28,9 @@ class TestBase(unittest.TestCase):
|
||||
def testEmptyStateCanReachSomething(self):
|
||||
for game_name, world_type in AutoWorldRegister.world_types.items():
|
||||
# Final Fantasy logic is controlled by finalfantasyrandomizer.com
|
||||
if game_name not in {"Archipelago", "Final Fantasy", "Sudoku"}:
|
||||
if game_name not in {"Archipelago", "Sudoku"}:
|
||||
with self.subTest("Game", game=game_name):
|
||||
world = setup_default_world(world_type)
|
||||
world = setup_solo_multiworld(world_type)
|
||||
state = CollectionState(world)
|
||||
locations = set()
|
||||
for location in world.get_locations():
|
||||
|
||||
Reference in New Issue
Block a user