Added another test to check that get_app_conf delivers dict correct

This commit is contained in:
2025-07-13 15:13:38 +02:00
parent 756597668c
commit 422e4c136d

View File

@@ -104,7 +104,14 @@ class TestGetAppConf(unittest.TestCase):
get_app_conf(self.applications, "unknown", "features.foo", strict=True)
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()