summaryrefslogtreecommitdiffstats
path: root/dovetail
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2019-10-08 21:54:39 -0400
committerxudan <xudan16@huawei.com>2019-10-11 22:12:55 -0400
commit48d735cc1bec3b842d06a72992dc36c8799af381 (patch)
tree6b3fdcf69787407adcbc0bf95d80b8b7000e1348 /dovetail
parent9b8d8fcc9f4f191374f730b13fcb0ce18905864c (diff)
Update all redirected links in Dovetail docs
The pod ld-build2 only has python 3.6 installed, so change the tox env to be 3.6 Other pods has python 3.5 to verify pep8, py35 ... Change-Id: I0289d7ce96ffa49dd08ce4b855fe071a5e608cbf Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail')
-rw-r--r--dovetail/tests/unit/utils/test_dovetail_utils.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/dovetail/tests/unit/utils/test_dovetail_utils.py b/dovetail/tests/unit/utils/test_dovetail_utils.py
index d912aa8..2d2cdb0 100644
--- a/dovetail/tests/unit/utils/test_dovetail_utils.py
+++ b/dovetail/tests/unit/utils/test_dovetail_utils.py
@@ -510,15 +510,12 @@ class DovetailUtilsTesting(unittest.TestCase):
hosts_obj.add.assert_called_once_with([entry_obj])
hosts_obj.write.assert_called_once()
- @patch('dovetail.utils.dovetail_utils.objwalk')
- def test_get_obj_by_path(self, mock_walk):
- path = dist_path = 'path'
- obj = 'obj'
- mock_walk.return_value = [(path, obj)]
-
- expected = obj
- result = dovetail_utils.get_obj_by_path(obj, dist_path)
+ def test_get_obj_by_path(self):
+ obj = {'name': 'name', 'validate': {'testcase': 'testcase'}}
+ dst_path = ('name',)
+ expected = 'name'
+ result = dovetail_utils.get_obj_by_path(obj, dst_path)
self.assertEqual(expected, result)
@patch('dovetail.utils.dovetail_utils.objwalk')