Merge "Add clear_db to cleanup for TestCiscoNexusPlugin"
This commit is contained in:
commit
0a3a353bc2
@ -140,6 +140,7 @@ class TestCiscoNexusPlugin(base.BaseTestCase):
|
|||||||
}
|
}
|
||||||
db.configure_db()
|
db.configure_db()
|
||||||
|
|
||||||
|
self.addCleanup(db.clear_db)
|
||||||
# Use a mock netconf client
|
# Use a mock netconf client
|
||||||
self.mock_ncclient = mock.Mock()
|
self.mock_ncclient = mock.Mock()
|
||||||
self.patch_obj = mock.patch.dict('sys.modules',
|
self.patch_obj = mock.patch.dict('sys.modules',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user