def setUp(self): from osmtm import main from webtest import TestApp settings = { 'available_languages': 'en fr', 'local_settings_path': local_settings_path } self.app = main({}, **settings) self.testapp = TestApp(self.app)
def setUp(self): from osmtm import main from webtest import TestApp settings = { 'available_languages': 'en fr', 'sqlalchemy.url': db_url, } self.app = main({}, **settings) self.testapp = TestApp(self.app)
def setUp(self): from osmtm import main from webtest import TestApp self.config = testing.setUp() settings = { 'available_languages': 'en fr', 'available_languages_full': 'English, Français', 'local_settings_path': local_settings_path } self.app = main({}, **settings) self.testapp = TestApp(self.app)