mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-07-18 14:20:42 -07:00
9c80dc6257
This allows the unit tests to be run on specific worlds only, it works by using an environment variable AP_TEST_WORLDS which is a comma separated list of world directories.
14 lines
502 B
Python
14 lines
502 B
Python
import unittest
|
|
from worlds.AutoWorld import AutoWorldRegister
|
|
from worlds.Files import AutoPatchRegister
|
|
|
|
|
|
class TestPatches(unittest.TestCase):
|
|
world_relevant = True
|
|
|
|
def test_patch_name_matches_game(self) -> None:
|
|
for game_name in AutoPatchRegister.patch_types:
|
|
with self.subTest(game=game_name):
|
|
self.assertIn(game_name, AutoWorldRegister.world_types.keys(),
|
|
f"Patch '{game_name}' does not match the name of any world.")
|