Fix unit tests
This commit is contained in:
parent
f298776a03
commit
56b52e18b4
|
@ -1,5 +1,6 @@
|
||||||
from mock import patch, MagicMock
|
from mock import patch, MagicMock
|
||||||
|
|
||||||
|
patch('charmhelpers.core.hookenv.status_set').start()
|
||||||
with patch('charmhelpers.core.hookenv.config') as config:
|
with patch('charmhelpers.core.hookenv.config') as config:
|
||||||
config.return_value = 'neutron'
|
config.return_value = 'neutron'
|
||||||
import neutron_api_utils as utils # noqa
|
import neutron_api_utils as utils # noqa
|
||||||
|
|
|
@ -6,6 +6,9 @@ import yaml
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from mock import patch, MagicMock
|
from mock import patch, MagicMock
|
||||||
|
|
||||||
|
patch('charmhelpers.contrib.openstack.utils.set_os_workload_status').start()
|
||||||
|
patch('charmhelpers.core.hookenv.status_set').start()
|
||||||
|
|
||||||
|
|
||||||
def load_config():
|
def load_config():
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in New Issue