charm-layer-openstack/unit_tests/__init__.py

9 lines
264 B
Python

import sys
import mock
sys.path.append('./lib')
# mock out some charmhelpers libraries as they have apt install side effects
sys.modules['charmhelpers.contrib.openstack.utils'] = mock.MagicMock()
sys.modules['charmhelpers.contrib.network.ip'] = mock.MagicMock()