Restore tests to original state

This commit is contained in:
Jarno Westhof
2025-07-14 20:03:49 +02:00
parent a2b2378995
commit a6cb77b003
2 changed files with 2 additions and 6 deletions

View File

@@ -65,8 +65,6 @@ class TestIDs(unittest.TestCase):
def test_duplicate_location_ids(self):
"""Test that a game doesn't have location id overlap within its own datapackage"""
for gamename, world_type in AutoWorldRegister.world_types.items():
self.maxDiff = None
with self.subTest(game=gamename):
len_location_id_to_name = len(world_type.location_id_to_name)
len_location_name_to_id = len(world_type.location_name_to_id)

View File

@@ -52,8 +52,7 @@ class TestBase(unittest.TestCase):
state = multiworld.get_all_state(False)
for location in multiworld.get_locations():
with self.subTest("Location should be reached", location=location.name):
if not location.can_reach(state):
self.assertTrue(location.can_reach(state), f"{location.name} unreachable")
self.assertTrue(location.can_reach(state), f"{location.name} unreachable")
for region in multiworld.get_regions():
if region.name in unreachable_regions:
@@ -61,8 +60,7 @@ class TestBase(unittest.TestCase):
self.assertFalse(region.can_reach(state))
else:
with self.subTest("Region should be reached", region=region.name):
if not region.can_reach(state):
self.assertTrue(region.can_reach(state))
self.assertTrue(region.can_reach(state))
with self.subTest("Completion Condition"):
self.assertTrue(multiworld.can_beat_game(state))