Beispiel #1
0
 def setUp(self):
     from unuo.config import config
     from unuo.factories import default_factory
     from tests.ioc import FileBackendTest
     import tempfile
     config.builds_folder = tempfile.mkdtemp()
     logger.info('Created temp build dir %s', config.builds_folder)
     config.logs_folder = tempfile.mkdtemp()
     logger.info('Created temp log dir %s', config.logs_folder)
     app = default_factory(modules=[FileBackendTest])
     self.app = app.test_client()
Beispiel #2
0
#!/usr/bin/env python

from unuo.factories import default_factory

app = None


if __name__ == '__main__':
    app = default_factory()
    app.run()