Added another test to check that get_app_conf delivers dict correct

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-13 15:13:38 +02:00
parent 756597668c
commit 422e4c136d
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E

View File

@ -105,6 +105,13 @@ class TestGetAppConf(unittest.TestCase):
with self.assertRaises(AppConfigKeyError):
get_app_conf(self.applications, "unknown", "features.foo", strict=False)
def test_return_dict_strict_true(self):
"""Test that retrieving a dict value (strict) returns the dict itself."""
result = get_app_conf(self.applications, "myapp", "docker.images", strict=True)
expected = {
"myapp": "repo/myapp"
}
self.assertEqual(result, expected)
if __name__ == '__main__':
unittest.main()