Beispiel #1
0
 def setUp(self):
     from myproject import main
     settings = {'sqlalchemy.url': 'sqlite://'}
     app = main({}, **settings)
     from webtest import TestApp
     self.testapp = TestApp(app)
     _initTestingDB()
Beispiel #2
0
 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]
     ]
Beispiel #4
0
def app(app_settings):
    return main({}, **app_settings)
Beispiel #5
0
 def setUp(self):
     from myproject import main
     app = main({})
     from webtest import TestApp
     self.testapp = TestApp(app)
Beispiel #6
0
 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)
Beispiel #8
0
def test_main():
    assert myproject.main() == 0
 def init(self):
     from myproject import main
     from webtest import TestApp
     self.raw_app = main({})
     self.app = TestApp(self.raw_app)