Esempio n. 1
0
def fake_cloud(request):
    """Defines the testserver funcarg"""
    app = FakeCloudServer()
    server = WSGIServer(application=app,
                        ssl_context=('./tests/server.crt',
                                     './tests/server.key'))
    app.url = server.url
    server.start()
    request.addfinalizer(server.stop)
    return server
def fake_cloud(request):
    """Defines the testserver funcarg"""
    app = FakeCloudServer()
    server = WSGIServer(
        application=app,
        ssl_context=(get_full_path("server.crt"), get_full_path("server.key")),
    )
    app.url = server.url
    server.start()
    request.addfinalizer(server.stop)
    return server