MCPcopy
hub / github.com/encode/httpx / test_errors

Function test_errors

tests/test_main.py:181–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179
180
181def 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 ]

Callers

nothing calls this directly

Calls 1

splitlinesFunction · 0.85

Tested by

no test coverage detected