()
| 104 | |
| 105 | |
| 106 | def test_make_test_body_with_headers_files() -> None: |
| 107 | body, headers = make_test_body_with_headers( |
| 108 | files={"a": FileStorage(BytesIO(b"abc"), filename="Quart")} |
| 109 | ) |
| 110 | assert body == ( |
| 111 | b'\r\n------QuartBoundary\r\nContent-Disposition: form-data; name="a"; ' |
| 112 | b'filename="Quart"\r\n\r\nabc\r\n------QuartBoundary--\r\n' |
| 113 | ) |
| 114 | assert headers == Headers( |
| 115 | {"Content-Type": "multipart/form-data; boundary=----QuartBoundary"} |
| 116 | ) |
| 117 | |
| 118 | |
| 119 | def test_make_test_body_with_headers_form_and_files() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…