Add cert_utils to test mocks

cert_utils was recently added to charmhelpers and needs to be
mocked in unit tests.

Change-Id: I9e5df7798799e1afe5403bbbd2156e7257b3c394
This commit is contained in:
Liam Young 2018-05-16 10:07:50 +00:00
parent 323edcc8c9
commit 9fb7981d32
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ def mock_charmhelpers():
charmhelpers.contrib.openstack.ha)
sys.modules['charmhelpers.contrib.openstack.utils'] = (
charmhelpers.contrib.openstack.utils)
sys.modules['charmhelpers.contrib.openstack.cert_utils'] = (
charmhelpers.contrib.openstack.cert_utils)
sys.modules['charmhelpers.contrib.openstack.templating'] = (
charmhelpers.contrib.openstack.templating)
sys.modules['charmhelpers.contrib.network'] = charmhelpers.contrib.network