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

Function test_url_copywith_invalid_component

tests/models/test_url.py:619–624  ·  tests/models/test_url.py::test_url_copywith_invalid_component
()

Source from the content-addressed store, hash-verified

617
618
619def test_url_copywith_invalid_component():
620 url = httpx.URL(class="st">"https://example.org")
621 with pytest.raises(TypeError):
622 url.copy_with(pathh=class="st">"/incorrect-spelling")
623 with pytest.raises(TypeError):
624 url.copy_with(userinfo=class="st">"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