[trivial] Only disable implicit config save when running unit tests

This commit is contained in:
Liam Young 2014-09-26 11:14:13 +01:00
parent 5b0c2a571c
commit fa7d272d56
2 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,7 @@ from quantum_utils import (
stop_services
)
hooks = Hooks(config_save=False)
hooks = Hooks()
CONFIGS = register_configs()

View File

@ -57,6 +57,7 @@ class TestQuantumHooks(CharmTestCase):
self.lsb_release.return_value = {'DISTRIB_CODENAME': 'precise'}
self.b64decode.side_effect = passthrough
hookenv.config.side_effect = self.test_config.get
hooks.hooks._config_save = False
def _call_hook(self, hookname):
hooks.hooks.execute([