diff options
author | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-11-16 22:56:07 +0800 |
---|---|---|
committer | zhifeng.jiang <jiang.zhifeng@zte.com.cn> | 2016-11-16 22:56:07 +0800 |
commit | 862f1fe7fab4b94242663ab509c3dd91dc592c2c (patch) | |
tree | 70c9b0e4ca105d349714435681a978ce408160c4 /tests/driver_test.py | |
parent | 2b3df7dce52e965ba5992334ce7d3d1c229a9ce9 (diff) |
Bugfix: Correct the path in unit test.
Change-Id: I2e019230bc50222222c5df4c0d18640616fff074
Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
Diffstat (limited to 'tests/driver_test.py')
-rw-r--r-- | tests/driver_test.py | 6 |
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, |