Archipelago/test/general/TestImplemented.py

15 lines
606 B
Python
Raw Normal View History

import unittest
2022-05-10 17:43:44 +00:00
from worlds.AutoWorld import AutoWorldRegister
from . import setup_default_world
2022-05-10 17:43:44 +00:00
class TestImplemented(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))