From b4c2db5ea0ed3116de49b69dae4c4f6c9114a152 Mon Sep 17 00:00:00 2001 From: Sean McCully Date: Wed, 2 Oct 2013 02:36:05 -0500 Subject: [PATCH] Add clear_db to cleanup for TestCiscoNexusPlugin Fixes Bug: #1234012 Change-Id: I0829f04ac1a0760d96babcb1154f4f569a0f848f (cherry picked from commit b4167ed095dbd47a137ff22674ae13aba3a50513) --- neutron/tests/unit/cisco/test_nexus_plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron/tests/unit/cisco/test_nexus_plugin.py b/neutron/tests/unit/cisco/test_nexus_plugin.py index 84e819f77..2908e0cd2 100644 --- a/neutron/tests/unit/cisco/test_nexus_plugin.py +++ b/neutron/tests/unit/cisco/test_nexus_plugin.py @@ -140,6 +140,7 @@ class TestCiscoNexusPlugin(base.BaseTestCase): } db.configure_db() + self.addCleanup(db.clear_db) # Use a mock netconf client self.mock_ncclient = mock.Mock() self.patch_obj = mock.patch.dict('sys.modules', -- 2.45.2