(
path: str,
query_string: dict | None,
subdomain: str | None,
expected_path: str,
expected_query_string: bytes,
expected_host: str,
)
| 57 | ], |
| 58 | ) |
| 59 | def test_build_headers_path_and_query_string( |
| 60 | path: str, |
| 61 | query_string: dict | None, |
| 62 | subdomain: str | None, |
| 63 | expected_path: str, |
| 64 | expected_query_string: bytes, |
| 65 | expected_host: str, |
| 66 | ) -> None: |
| 67 | headers, result_path, result_qs = make_test_headers_path_and_query_string( |
| 68 | Quart(__name__), path, None, query_string, None, subdomain |
| 69 | ) |
| 70 | assert result_path == expected_path |
| 71 | assert headers["User-Agent"] == "Quart" |
| 72 | assert headers["host"] == expected_host |
| 73 | assert result_qs == expected_query_string |
| 74 | |
| 75 | |
| 76 | def test_build_headers_path_and_query_string_with_query_string_error() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…