Merge "Use MagicMock for Connection object"

This commit is contained in:
Zuul 2020-09-03 22:32:15 +00:00 committed by Gerrit Code Review
commit 5dccd1f12d
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ class TestNBImplIdlOvn(TestDBImplIdlOvn):
with mock.patch.object(ovs_idl.Backend, 'autocreate_indices',
create=True):
impl_idl_ovn.OvsdbNbOvnIdl.ovsdb_connection = None
self.nb_ovn_idl = impl_idl_ovn.OvsdbNbOvnIdl(mock.Mock())
self.nb_ovn_idl = impl_idl_ovn.OvsdbNbOvnIdl(mock.MagicMock())
self.nb_ovn_idl.idl.tables = self._tables