[trivial] Only disable implicit config save when running unit tests
This commit is contained in:
parent
5b0c2a571c
commit
fa7d272d56
@ -47,7 +47,7 @@ from quantum_utils import (
|
||||
stop_services
|
||||
)
|
||||
|
||||
hooks = Hooks(config_save=False)
|
||||
hooks = Hooks()
|
||||
CONFIGS = register_configs()
|
||||
|
||||
|
||||
|
@ -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([
|
||||
|
Loading…
x
Reference in New Issue
Block a user