test config dtypes

This commit is contained in:
Mike McLean 2025-02-07 09:24:55 -05:00 committed by Tomas Kopecek
parent a7d7d9c1f5
commit eb9ada8eb5
2 changed files with 13 additions and 9 deletions

View file

@ -85,7 +85,6 @@ class TestHubConfig(unittest.TestCase):
expected = 'Invalid data type badtype for BadOpt option'
self.assertEqual(str(ex.exception), expected)
def test_policy(self):
config = '''
[policy]
@ -99,5 +98,10 @@ channel =
kojixmlrpc.load_config(self.environ)
def test_map(self):
for row in kojixmlrpc.config_map:
name, dtype, default = row
self.assertIn(dtype, ('integer', 'boolean', 'string'))
# the end