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

Function test_merge_relative_url

tests/client/test_client.py:198–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196
197
198def test_merge_relative_url():
199 client = httpx.Client(base_url="https://www.example.com/")
200 request = client.build_request("GET", "/testing/123")
201 assert request.url == "https://www.example.com/testing/123"
202
203
204def test_merge_relative_url_with_path():

Callers

nothing calls this directly

Calls 1

build_requestMethod · 0.80

Tested by

no test coverage detected