3
0
Fork 0

Make WuttaConfig.get_list() return None by default

instead of empty list `[]`
This commit is contained in:
Lance Edgar 2024-04-14 14:59:32 -05:00
parent 16e9811816
commit 24a86ffeb4
3 changed files with 12 additions and 3 deletions

View file

@ -370,7 +370,7 @@ configure_logging = true
def test_get_list(self):
config = conf.WuttaConfig()
self.assertEqual(config.get_list('foo.bar'), [])
self.assertIsNone(config.get_list('foo.bar'))
config.setdefault('foo.bar', 'hello world')
self.assertEqual(config.get_list('foo.bar'), ['hello', 'world'])