def tearDown(self): Base.metadata.drop_all(engine) Session.remove()
def __exit__(self, *args, **kwargs): Session.remove()