from __future__ import with_statement from ris import create_app, db from ris.core.models.user import User app = create_app() app.test_request_context().push() db.drop_all()
def tearDown(self): db.session.remove() db.drop_all()