Merge "Fix neutron tests"

This commit is contained in:
Zuul 2020-05-16 22:10:43 +00:00 committed by Gerrit Code Review
commit be8cab91f8
1 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,8 @@ class TestOVSDBHandler(base.BaseTestCase):
self.ovsdb_handler.handle_trunk_add('foo')
self.assertFalse(has_port_mock.called)
def test_handle_trunk_remove_trunk_manager_failure(self):
@mock.patch('neutron.agent.common.ovs_lib.OVSBridge')
def test_handle_trunk_remove_trunk_manager_failure(self, br):
with mock.patch.object(self.ovsdb_handler, '_get_trunk_metadata',
side_effect=trunk_manager.TrunkManagerError(error='error')):
with mock.patch.object(ovsdb_handler, 'bridge_has_instance_port',