From 422e4c136ddce823159903a1f69b07c40ff43f8f Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 13 Jul 2025 15:13:38 +0200 Subject: [PATCH] Added another test to check that get_app_conf delivers dict correct --- tests/unit/filter_plugins/test_get_app_conf.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/unit/filter_plugins/test_get_app_conf.py b/tests/unit/filter_plugins/test_get_app_conf.py index ca45aeaa..0bf98487 100644 --- a/tests/unit/filter_plugins/test_get_app_conf.py +++ b/tests/unit/filter_plugins/test_get_app_conf.py @@ -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()