()
| 179 | |
| 180 | |
| 181 | def test_errors(): |
| 182 | runner = CliRunner() |
| 183 | result = runner.invoke(httpx.main, ["invalid://example.org"]) |
| 184 | assert result.exit_code == 1 |
| 185 | assert splitlines(result.output) == [ |
| 186 | "UnsupportedProtocol: Request URL has an unsupported protocol 'invalid://'.", |
| 187 | ] |
nothing calls this directly
no test coverage detected