Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Modify install.yaml to support Ubuntu 18"
[yardstick.git]
/
yardstick
/
tests
/
unit
/
benchmark
/
contexts
/
test_base.py
diff --git
a/yardstick/tests/unit/benchmark/contexts/test_base.py
b/yardstick/tests/unit/benchmark/contexts/test_base.py
index
1e63b48
..
5fd7352
100644
(file)
--- a/
yardstick/tests/unit/benchmark/contexts/test_base.py
+++ b/
yardstick/tests/unit/benchmark/contexts/test_base.py
@@
-19,6
+19,7
@@
import mock
from yardstick.benchmark.contexts import base
from yardstick.benchmark.contexts.base import Context
from yardstick.benchmark.contexts import base
from yardstick.benchmark.contexts.base import Context
+from yardstick.common import yaml_loader
from yardstick.tests.unit import base as ut_base
from yardstick.common.constants import YARDSTICK_ROOT_PATH
from yardstick.tests.unit import base as ut_base
from yardstick.common.constants import YARDSTICK_ROOT_PATH
@@
-131,7
+132,7
@@
class ContextTestCase(ut_base.BaseUnitTestCase):
mock_get_ctx.assert_called_once()
self.assertIsNone(result)
mock_get_ctx.assert_called_once()
self.assertIsNone(result)
- @mock.patch
('yardstick.common.utils.
read_yaml_file')
+ @mock.patch
.object(yaml_loader, '
read_yaml_file')
def test_read_pod_file(self, mock_read_yaml_file):
attrs = {'name': 'foo',
'task_id': '12345678',
def test_read_pod_file(self, mock_read_yaml_file):
attrs = {'name': 'foo',
'task_id': '12345678',