Tests: check that options have a docstring (#823)

This commit is contained in:
Fabian Dill 2023-04-10 04:33:47 +02:00 committed by GitHub
parent 81411a191c
commit 9d73988030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View 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__)