Exemplo n.º 1
0
Arquivo: app.py Projeto: 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()
Exemplo n.º 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
Exemplo n.º 3
0
 def setUp(self):
     from lasco.models import initialize_sql
     from lasco.tests.base import TESTING_DB
     initialize_sql(TESTING_DB)
     self.printed = []
Exemplo n.º 4
0
 def setUp(self):
     testing.setUp()
     initialize_sql('sqlite:///:memory:')
     self.session = DBSession
Exemplo n.º 5
0
Arquivo: base.py Projeto: dbaty/Lasco
 def setUp(self):
     self.config = testing.setUp()
     initialize_sql(TESTING_DB)
     self.session = DBSession
     self._monkey_patch_exif_process(lambda f: {})