()
| 75 | |
| 76 | |
| 77 | def test_lint_middleware_invalid_location(): |
| 78 | def my_dummy_application(environ, start_response): |
| 79 | start_response("200 OK", [("location", "foo")]) |
| 80 | return [b"Foo"] |
| 81 | |
| 82 | app = LintMiddleware(my_dummy_application) |
| 83 | |
| 84 | environ = create_environ("/test") |
| 85 | with pytest.warns(HTTPWarning, match="Absolute URLs required for location header."): |
| 86 | run_wsgi_app(app, environ, buffered=True) |
nothing calls this directly
no test coverage detected