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

Function test_merge_relative_url_with_path

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

Source from the content-addressed store, hash-verified

202
203
204def test_merge_relative_url_with_path():
205 client = httpx.Client(base_url="https://www.example.com/some/path")
206 request = client.build_request("GET", "/testing/123")
207 assert request.url == "https://www.example.com/some/path/testing/123"
208
209
210def test_merge_relative_url_with_dotted_path():

Callers

nothing calls this directly

Calls 1

build_requestMethod · 0.80

Tested by

no test coverage detected