mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Test: check for working completion condition
This commit is contained in:
14
test/general/TestImplemented.py
Normal file
14
test/general/TestImplemented.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import unittest
|
||||
from worlds.AutoWorld import AutoWorldRegister, World
|
||||
|
||||
from . import setup_default_world
|
||||
|
||||
|
||||
class TestIDs(unittest.TestCase):
|
||||
def testCompletionCondition(self):
|
||||
"""Ensure a completion condition is set that has requirements."""
|
||||
for gamename, world_type in AutoWorldRegister.world_types.items():
|
||||
if not world_type.hidden and gamename not in {"ArchipIDLE", "Final Fantasy"}:
|
||||
with self.subTest(gamename):
|
||||
world = setup_default_world(world_type)
|
||||
self.assertFalse(world.completion_condition[1](world.state))
|
Reference in New Issue
Block a user