Пример #1
0
Файл: app.py Проект: dbaty/Lasco
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()
Пример #2
0
 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
Пример #3
0
 def setUp(self):
     from lasco.models import initialize_sql
     from lasco.tests.base import TESTING_DB
     initialize_sql(TESTING_DB)
     self.printed = []
Пример #4
0
 def setUp(self):
     testing.setUp()
     initialize_sql('sqlite:///:memory:')
     self.session = DBSession
Пример #5
0
 def setUp(self):
     self.config = testing.setUp()
     initialize_sql(TESTING_DB)
     self.session = DBSession
     self._monkey_patch_exif_process(lambda f: {})