def teardown_method(self, method): self.session.execute('DROP TABLE account') self.session.execute('DROP TYPE money_type') self.session.commit() self.session.close_all() self.connection.close() remove_composite_listeners() self.engine.dispose()
def teardown(): session.execute('DROP TABLE account') session.execute('DROP TYPE money_type') session.commit() close_all_sessions() connection.close() remove_composite_listeners() engine.dispose()
def teardown_method(self, method): self.session.execute('DROP TABLE account') self.session.execute('DROP TYPE money_type') self.session.commit() self.session.close_all() self.connection.close() remove_composite_listeners() self.engine.dispose()
def teardown(): transaction.rollback() session.close_all() connection.close() remove_composite_listeners()
def teardown(): session.close_all() remove_composite_listeners()