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