mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Tests: check that options have a docstring (#823)
This commit is contained in:
11
test/general/TestOptions.py
Normal file
11
test/general/TestOptions.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import unittest
|
||||||
|
from worlds.AutoWorld import AutoWorldRegister
|
||||||
|
|
||||||
|
|
||||||
|
class TestOptions(unittest.TestCase):
|
||||||
|
def testOptionsHaveDocString(self):
|
||||||
|
for gamename, world_type in AutoWorldRegister.world_types.items():
|
||||||
|
if not world_type.hidden:
|
||||||
|
for option_key, option in world_type.option_definitions.items():
|
||||||
|
with self.subTest(game=gamename, option=option_key):
|
||||||
|
self.assertTrue(option.__doc__)
|
Reference in New Issue
Block a user