| 268 | |
| 269 | def test_session_using_application_root(app, client): |
| 270 | class PrefixPathMiddleware: |
| 271 | def __init__(self, app, prefix): |
| 272 | self.app = app |
| 273 | self.prefix = prefix |
| 274 | |
| 275 | def __call__(self, environ, start_response): |
| 276 | environ["SCRIPT_NAME"] = self.prefix |
| 277 | return self.app(environ, start_response) |
| 278 | |
| 279 | app.wsgi_app = PrefixPathMiddleware(app.wsgi_app, "/bar") |
| 280 | app.config.update(APPLICATION_ROOT="/bar") |
no outgoing calls