def destroy_gists(self, gistid=None): for g in Gist.query(): if gistid: if gistid == g.gist_access_id: GistModel().delete(g) else: GistModel().delete(g) Session().commit()
def teardown_method(self, method): for g in Gist.query(): GistModel().delete(g) Session().commit()