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

Function test_url_copywith_invalid_component

tests/models/test_url.py:619–624  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

617
618
619def test_url_copywith_invalid_component():
620 url = httpx.URL("https://example.org")
621 with pytest.raises(TypeError):
622 url.copy_with(pathh="/incorrect-spelling")
623 with pytest.raises(TypeError):
624 url.copy_with(userinfo="should be bytes")
625
626
627def test_url_copywith_urlencoded_path():

Callers

nothing calls this directly

Calls 1

copy_withMethod · 0.95

Tested by

no test coverage detected