aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfengyuanxing <feng.yuanxing@zte.com.cn>2017-09-01 15:13:05 +0800
committerfengyuanxing <feng.yuanxing@zte.com.cn>2017-09-01 15:21:28 +0800
commit715b28e5db4881cd0bd722b3fa0c92d524c70fa3 (patch)
tree6aa677352dbd45343271b625858fc1c619cdd6f4
parentdd282a45284c0cd2212d2745dad3461e282af2be (diff)
Fix bug adding code to clean up database teardown
Change-Id: I3d069a63c2fa756427f34212d9232a1f31e056ca Issue-Id: VFC-227 Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
-rw-r--r--catalog/packages/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog/packages/tests.py b/catalog/packages/tests.py
index cbee46a6..f581d9cf 100644
--- a/catalog/packages/tests.py
+++ b/catalog/packages/tests.py
@@ -435,7 +435,9 @@ class PackageTest(unittest.TestCase):
}
}
def tearDown(self):
- pass
+ NfPackageModel.objects.all().delete()
+ NSDModel.objects.all().delete()
+ JobStatusModel.objects.all().delete()
def test_nspackages_get(self):