projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Adding TCP Dump"
[osm/devops.git]
/
installers
/
charm
/
mysqld-exporter
/
tests
/
__init__.py
diff --git
a/installers/charm/mysqld-exporter/tests/__init__.py
b/installers/charm/mysqld-exporter/tests/__init__.py
index
4fd849a
..
90dc417
100644
(file)
--- a/
installers/charm/mysqld-exporter/tests/__init__.py
+++ b/
installers/charm/mysqld-exporter/tests/__init__.py
@@
-23,9
+23,17
@@
"""Init mocking for unit tests."""
import sys
"""Init mocking for unit tests."""
import sys
+
import mock
import mock
+
+class OCIImageResourceErrorMock(Exception):
+ pass
+
+
sys.path.append("src")
oci_image = mock.MagicMock()
sys.path.append("src")
oci_image = mock.MagicMock()
+oci_image.OCIImageResourceError = OCIImageResourceErrorMock
sys.modules["oci_image"] = oci_image
sys.modules["oci_image"] = oci_image
+sys.modules["oci_image"].OCIImageResource().fetch.return_value = {}