diff options
author | wu.zhihui <wu.zhihui1@zte.com.cn> | 2016-11-09 09:38:08 +0800 |
---|---|---|
committer | wu.zhihui <wu.zhihui1@zte.com.cn> | 2016-11-09 09:38:08 +0800 |
commit | eed3a9fc0bf490bef2e1c7cc597db6063c11bcac (patch) | |
tree | c4582b43b6e3c22b4ca6d9a1ce885a677a6190a9 /tests/driver_test.py | |
parent | 03b2fdd33a019c4eabc8da7ba49c851bf91ffc4e (diff) |
Merge func to utils
Local test is ok.
JIRA: QTIP-131
Change-Id: I7009337903c7ded90dda47a05d6c1c95aa96815d
Signed-off-by: wu.zhihui <wu.zhihui1@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 41a7dee4..d3025bd2 100644 --- a/tests/driver_test.py +++ b/tests/driver_test.py @@ -1,6 +1,6 @@ import pytest import mock -from func.driver import Driver +from 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('func.driver.AnsibleApi.execute_playbook') - @mock.patch('func.driver.AnsibleApi.get_detail_playbook_stats') + @mock.patch('utils.driver.AnsibleApi.execute_playbook') + @mock.patch('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, |