mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Tests: No Creating Items/Locations/Regions in __init__ (#4474)
This commit is contained in:
@@ -117,3 +117,12 @@ class TestImplemented(unittest.TestCase):
|
|||||||
f"\nUnexpectedly reachable locations in sphere {sphere_num}:"
|
f"\nUnexpectedly reachable locations in sphere {sphere_num}:"
|
||||||
f"\n{reachable_only_with_explicit}")
|
f"\n{reachable_only_with_explicit}")
|
||||||
self.fail("Unreachable")
|
self.fail("Unreachable")
|
||||||
|
|
||||||
|
def test_no_items_or_locations_or_regions_submitted_in_init(self):
|
||||||
|
"""Test that worlds don't submit items/locations/regions to the multiworld in __init__"""
|
||||||
|
for game_name, world_type in AutoWorldRegister.world_types.items():
|
||||||
|
with self.subTest("Game", game=game_name):
|
||||||
|
multiworld = setup_solo_multiworld(world_type, ())
|
||||||
|
self.assertEqual(len(multiworld.itempool), 0)
|
||||||
|
self.assertEqual(len(multiworld.get_locations()), 0)
|
||||||
|
self.assertEqual(len(multiworld.get_regions()), 0)
|
||||||
|
Reference in New Issue
Block a user