forked from ArchipelagoMW/Archipelago
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: check that options have a docstring (ArchipelagoMW#823)
- Loading branch information
1 parent
81411a1
commit 9d73988
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__) |