From: Torsten Werner Date: Thu, 13 Jan 2011 19:01:09 +0000 (+0100) Subject: Clean up after DB test. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=dc260b20c363015ff5e84683ad8d8802963cfb08;p=dak.git Clean up after DB test. Signed-off-by: Torsten Werner --- 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()