def make_app(global_settings, **settings): config = Configurator(settings=settings) set_config(config) initialize_sql(settings['lasco.db_string']) setup_who_api_factory( config, global_settings, settings['lasco.auth_config']) return config.make_wsgi_app()
def setUp(self): from pyramid import testing from lasco.models import DBSession from lasco.models import initialize_sql testing.setUp() initialize_sql(TESTING_DB) self.session = DBSession
def setUp(self): from lasco.models import initialize_sql from lasco.tests.base import TESTING_DB initialize_sql(TESTING_DB) self.printed = []
def setUp(self): testing.setUp() initialize_sql('sqlite:///:memory:') self.session = DBSession
def setUp(self): self.config = testing.setUp() initialize_sql(TESTING_DB) self.session = DBSession self._monkey_patch_exif_process(lambda f: {})