From 24fc248f421af80dd7374da70c594e45631fd123 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Wed, 7 Jun 2017 09:28:46 +0300 Subject: [PATCH] Fix NSX|V3 unit tests Commit Ibb1ea9b64bb92f3cae488db41da6bec849ce042e removed a mock from the nsxlib base tests. This mock is still needed by the vmware-nsx unit tests, so it is added here. Change-Id: Id13159d24fb5a599e02439cca0cfd4a122c65eed --- vmware_nsx/tests/unit/nsx_v3/test_plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vmware_nsx/tests/unit/nsx_v3/test_plugin.py b/vmware_nsx/tests/unit/nsx_v3/test_plugin.py index 1d9d9fb048..5adbe57e2d 100644 --- a/vmware_nsx/tests/unit/nsx_v3/test_plugin.py +++ b/vmware_nsx/tests/unit/nsx_v3/test_plugin.py @@ -148,6 +148,10 @@ def _mock_nsx_backend_calls(): "vmware_nsxlib.v3.resources.LogicalDhcpServer.create_binding", side_effect=_return_id_key).start() + mock.patch( + "vmware_nsxlib.v3.NsxLib.get_version", + return_value='1.1.0').start() + class NsxV3PluginTestCaseMixin(test_plugin.NeutronDbPluginV2TestCase, nsxlib_testcase.NsxClientTestCase):