diff --git a/tests/db/__init__.py b/tests/db/__init__.py index d9bcb227a3a51feececd247c28f4f12c271d2a29..9ac277d87883777a2f82af3751188d3d437aa840 100644 --- a/tests/db/__init__.py +++ b/tests/db/__init__.py @@ -22,7 +22,8 @@ class DataTestCase(unittest.TestCase): def setUp(self): self.session = Session() for table in reversed(Base.metadata.sorted_tables): - self.session.execute(table.delete()) + if not table.name.startswith('batch.'): + self.session.execute(table.delete()) self.session.commit() def tearDown(self):