mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-18 06:24:25 +02:00
Added another test to check that get_app_conf delivers dict correct
This commit is contained in:
parent
756597668c
commit
422e4c136d
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user