def tearDown(self): """ Tear down the environment after each executed test. :return: Nothing. """ # Remove the session and drop de DB db.session.remove() db.reflect() db.drop_all() # Delete the SQLite file os.remove(db.session.bind.url.database)
def tearDown(self): """ Remove the registries and delete the DB at the end of each test. :return: Nothing. """ # Remove the session and drop de DB db.session.remove() db.reflect() db.drop_all() # Delete the SQLite file os.remove(db.session.bind.url.database)