コード例 #1
0
ファイル: tests.py プロジェクト: pmauduit/OSMTM
 def setUp(self):
     from OSMTM import main
     settings = {
         'sqlalchemy.url': 'sqlite:///:memory:'
     }
     app = main({}, **settings)
     from webtest import TestApp
     self.testapp = TestApp(app)
コード例 #2
0
    def setUp(self):
        from OSMTM import main
        settings = {
            'sqlalchemy.url': 'sqlite:///:memory:'
        }
        self.app = main({}, **settings)
        from webtest import TestApp
        self.testapp = TestApp(self.app)

        from OSMTM.models import populate
        populate()