From dc260b20c363015ff5e84683ad8d8802963cfb08 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Thu, 13 Jan 2011 20:01:09 +0100 Subject: [PATCH] Clean up after DB test. Signed-off-by: Torsten Werner --- tests/dbtest_fingerprint.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/dbtest_fingerprint.py b/tests/dbtest_fingerprint.py index c0d23525..efd994d3 100755 --- a/tests/dbtest_fingerprint.py +++ b/tests/dbtest_fingerprint.py @@ -16,5 +16,9 @@ class FingerprintTestCase(DBDakTestCase): self.assertEqual(1, query.count()) self.assertEqual('deadbeefdeadbeef', query.one().fingerprint) + def tearDown(self): + self.session.query(Fingerprint).delete() + super(FingerprintTestCase, self).tearDown() + if __name__ == '__main__': unittest.main() -- 2.39.5