MCPcopy
hub / github.com/psf/requests / prepare_url

Function prepare_url

tests/conftest.py:15–22  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

13
14
15def prepare_url(value):
16 # Issue #1483: Make sure the URL always has a trailing slash
17 httpbin_url = value.url.rstrip("/") + "/"
18
19 def inner(*suffix):
20 return urljoin(httpbin_url, "/".join(suffix))
21
22 return inner
23
24
25@pytest.fixture(autouse=True)

Callers 2

httpbinFunction · 0.85
httpbin_secureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected