clear out the test db for each test, making tests more isolated

This commit is contained in:
chrisw 2010-09-09 18:13:15 +01:00
parent ede16eb5b0
commit 4721bb1b81

View File

@ -117,6 +117,9 @@ class DB(Base):
def _setup(self, url):
self._connect(url)
# make sure there are no tables lying around
meta = MetaData(self.engine, reflect=True)
meta.drop_all()
def _teardown(self):
self._disconnect()