Skip to content

Commit

Permalink
Tests: check that options have a docstring (ArchipelagoMW#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 authored Apr 10, 2023
1 parent 81411a1 commit 9d73988
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/general/TestOptions.py
Original file line number Diff line number Diff line change
@@ -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__)

0 comments on commit 9d73988

Please sign in to comment.