From 56b0f556a6f7abac57193eb4141a47e5fdfd8bff Mon Sep 17 00:00:00 2001 From: Liam Young Date: Wed, 18 Apr 2018 08:57:38 +0000 Subject: [PATCH] Add the missing t --- unit_tests/test_zaza_charm_lifecycle_deploy.py | 8 ++++---- zaza/charm_lifecycle/deploy.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/unit_tests/test_zaza_charm_lifecycle_deploy.py b/unit_tests/test_zaza_charm_lifecycle_deploy.py index 982cc57..9884e3c 100644 --- a/unit_tests/test_zaza_charm_lifecycle_deploy.py +++ b/unit_tests/test_zaza_charm_lifecycle_deploy.py @@ -30,20 +30,20 @@ class TestCharmLifecycleDeploy(ut_utils.BaseTestCase): {'OS_VIP04': '10.10.0.2'} ) - def test_get_charm_config_contex(self): + def test_get_charm_config_context(self): self.patch_object(lc_deploy.utils, 'get_charm_config') self.get_charm_config.return_value = { 'charm_name': 'mycharm'} self.assertEqual( - lc_deploy.get_charm_config_contex(), + lc_deploy.get_charm_config_context(), {'charm_location': '../../../mycharm', 'charm_name': 'mycharm'}) def test_get_template_overlay_context(self): self.patch_object(lc_deploy, 'get_template_context_from_env') - self.patch_object(lc_deploy, 'get_charm_config_contex') + self.patch_object(lc_deploy, 'get_charm_config_context') self.get_template_context_from_env.return_value = { 'OS_VIP04': '10.10.0.2'} - self.get_charm_config_contex.return_value = { + self.get_charm_config_context.return_value = { 'charm_location': '../../../mycharm', 'charm_name': 'mycharm'} self.assertEqual( diff --git a/zaza/charm_lifecycle/deploy.py b/zaza/charm_lifecycle/deploy.py index a516963..c87aad3 100755 --- a/zaza/charm_lifecycle/deploy.py +++ b/zaza/charm_lifecycle/deploy.py @@ -52,7 +52,7 @@ def get_template_context_from_env(): return {k: v for k, v in os.environ.items() if is_valid_env_key(k)} -def get_charm_config_contex(): +def get_charm_config_context(): """Return settings from charm config file :returns: Context for template rendering @@ -74,7 +74,7 @@ def get_template_overlay_context(): context = {} contexts = [ get_template_context_from_env(), - get_charm_config_contex()] + get_charm_config_context()] for c in contexts: context.update(c) return context