Exemplo n.º 1
0
 def setUp(self):
     """Run test server with temporary settings."""
     global_config = {}
     self.template_dir = temporary_directory()
     self.template_dir.__enter__()
     application = diecutter.main(global_config,
                                  **settings(self.template_dir.path))
     self.app = TestApp(application)
Exemplo n.º 2
0
def wsgi_application(settings={}):
    """Return diecutter WSGI application for tests.

    Uses WebTest.

    """
    global_config = {}
    application = diecutter.main(global_config, **settings)
    #application = TestApp(application)
    return application