mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 04:01:32 -06:00

* rename modules * rename methods * add docstrings to the general tests * add base import stub * test_base -> bases * print deprecation warning * redo 2346
13 lines
557 B
Python
13 lines
557 B
Python
import unittest
|
|
from worlds.AutoWorld import AutoWorldRegister
|
|
|
|
|
|
class TestOptions(unittest.TestCase):
|
|
def test_options_have_doc_string(self):
|
|
"""Test that submitted options have their own specified docstring"""
|
|
for gamename, world_type in AutoWorldRegister.world_types.items():
|
|
if not world_type.hidden:
|
|
for option_key, option in world_type.options_dataclass.type_hints.items():
|
|
with self.subTest(game=gamename, option=option_key):
|
|
self.assertTrue(option.__doc__)
|