Source

lodgeit-main / tests / utilities / runner.py

from nose import with_setup


from lodgeit.models import Paste
from lodgeit.wsgi.application import db, make_app

foo = make_app(False, True)


def setup():
    pass


def teardown():
    Paste.query.delete()
    db.session.commit()
    db.session.remove()


def testcase():
    def dec(f):
        return with_setup(setup, teardown)(f)
    return dec

testcase.__test__ = False