def setUp(self): from myproject import main settings = {'sqlalchemy.url': 'sqlite://'} app = main({}, **settings) from webtest import TestApp self.testapp = TestApp(app) _initTestingDB()
def setUp(self): from myproject import main settings = { 'sqlalchemy.url': 'sqlite://'} app = main({}, **settings) from webtest import TestApp self.testapp = TestApp(app) _initTestingDB()
def setUp(self): from myproject import main from webtest import TestApp self.raw_app = main({}) self.app = TestApp(self.raw_app) self.data = [ [1, 2, 3], [4, 5, 6] ]
def app(app_settings): return main({}, **app_settings)
def setUp(self): from myproject import main app = main({}) from webtest import TestApp self.testapp = TestApp(app)
def init(self): from myproject import main from webtest import TestApp self.raw_app = main({}) self.app = TestApp(self.raw_app)
def test_main(): assert myproject.main() == 0