summaryrefslogtreecommitdiffstats
path: root/tests/driver_test.py
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-11-17 00:50:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-17 00:50:01 +0000
commit2bacbf4b78e200f1e427210a05ee758930ab6c79 (patch)
tree9c7eaea4168dd7f2fbda331ffd542938c08f86a5 /tests/driver_test.py
parentad9ee34c16c43cc60326e0ded52c9806794a14c3 (diff)
parent862f1fe7fab4b94242663ab509c3dd91dc592c2c (diff)
Merge "Bugfix: Correct the path in unit test."
Diffstat (limited to 'tests/driver_test.py')
-rw-r--r--tests/driver_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/driver_test.py b/tests/driver_test.py
index d3025bd2..432ce1ae 100644
--- a/tests/driver_test.py
+++ b/tests/driver_test.py
@@ -1,6 +1,6 @@
import pytest
import mock
-from utils.driver import Driver
+from qtip.utils.driver import Driver
from os.path import expanduser
HOME_DIR = expanduser('~')
@@ -65,8 +65,8 @@ class TestClass:
'bandwidthGbps': 0,
"role": "2-host"}])
])
- @mock.patch('utils.driver.AnsibleApi.execute_playbook')
- @mock.patch('utils.driver.AnsibleApi.get_detail_playbook_stats')
+ @mock.patch('qtip.utils.driver.AnsibleApi.execute_playbook')
+ @mock.patch('qtip.utils.driver.AnsibleApi.get_detail_playbook_stats')
def test_driver_success(self, mock_stats, mock_ansible, test_input, expected):
mock_ansible.return_value = True
mock_stats.return_value = [(u'10.20.6.14', {'unreachable': 0,