Ejemplo n.º 1
0
 def setUp(self):
     from OSMTM import main
     settings = {
         'sqlalchemy.url': 'sqlite:///:memory:'
     }
     app = main({}, **settings)
     from webtest import TestApp
     self.testapp = TestApp(app)
Ejemplo n.º 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()