
There are several instances of the error: E305 expected 2 blank lines after class or function definition Fix them all by adding the necessary blank lines. Change-Id: I37e2990772f05a100fe303c1512b7bdfb10a660d
26 lines
395 B
Python
26 lines
395 B
Python
from nose import with_setup
|
|
|
|
from lodgeit.application import db, make_app
|
|
from lodgeit.models import Paste
|
|
|
|
foo = make_app('sqlite://', 'NONE', 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
|