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

Function test_url_copywith_authority_subcomponents

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

Source from the content-addressed store, hash-verified

583
584
585def test_url_copywith_authority_subcomponents():
586 copy_with_kwargs = {
587 "username": "username",
588 "password": "password",
589 "port": 444,
590 "host": "example.net",
591 }
592 url = httpx.URL("https://example.org")
593 new = url.copy_with(**copy_with_kwargs)
594 assert str(new) == "https://username:password@example.net:444"
595
596
597def test_url_copywith_netloc():

Callers

nothing calls this directly

Calls 1

copy_withMethod · 0.95

Tested by

no test coverage detected