Merge "Cleanup BaseMonitor unit tests"
[yardstick.git] / tests / unit / __init__.py
index e69de29..95b2b8a 100644 (file)
@@ -0,0 +1,26 @@
+# Copyright (c) 2017 Intel Corporation\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+#      http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+import sys\r
+\r
+import mock\r
+\r
+from yardstick import tests\r
+\r
+# NOTE(ralonsoh): to be removed. Replace all occurrences of\r
+# tests.unit.STL_MOCKS with yardstick.tests.STL_MOCKS\r
+STL_MOCKS = tests.STL_MOCKS\r
+\r
+mock_stl = mock.patch.dict(sys.modules, tests.STL_MOCKS)\r
+mock_stl.start()\r