(headers, message)
| 63 | ], |
| 64 | ) |
| 65 | def test_lint_middleware_http_headers(headers, message): |
| 66 | def my_dummy_application(environ, start_response): |
| 67 | start_response("200 OK", headers) |
| 68 | return [b"Foo"] |
| 69 | |
| 70 | app = LintMiddleware(my_dummy_application) |
| 71 | |
| 72 | environ = create_environ("/test") |
| 73 | with pytest.warns(WSGIWarning, match=message): |
| 74 | run_wsgi_app(app, environ, buffered=True) |
| 75 | |
| 76 | |
| 77 | def test_lint_middleware_invalid_location(): |
nothing calls this directly
no test coverage detected