MCPcopy
hub / github.com/urllib3/urllib3 / test_nohost

Method test_nohost

test/test_poolmanager.py:81–84  ·  view source on GitHub ↗
(self, url: str | None)

Source from the content-addressed store, hash-verified

79
80 @pytest.mark.parametrize("url", ["http://@", None])
81 def test_nohost(self, url: str | None) -> None:
82 p = PoolManager(5)
83 with pytest.raises(LocationValueError):
84 p.connection_from_url(url=url) # type: ignore[arg-type]
85
86 def test_contextmanager(self) -> None:
87 with PoolManager(1) as p:

Callers

nothing calls this directly

Calls 2

connection_from_urlMethod · 0.95
PoolManagerClass · 0.90

Tested by

no test coverage detected