From 9d73988030faaad6f5c7ce789c36b9946a0db7a5 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 10 Apr 2023 04:33:47 +0200 Subject: [PATCH] Tests: check that options have a docstring (#823) --- test/general/TestOptions.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/general/TestOptions.py diff --git a/test/general/TestOptions.py b/test/general/TestOptions.py new file mode 100644 index 000000000000..b7058183e09c --- /dev/null +++ b/test/general/TestOptions.py @@ -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__)