MCPcopy
hub / github.com/encode/starlette / test_mutable_headers_merge_not_mapping

Function test_mutable_headers_merge_not_mapping

tests/test_datastructures.py:305–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303
304
305def test_mutable_headers_merge_not_mapping() -> None:
306 h = MutableHeaders()
307 with pytest.raises(TypeError):
308 h |= {"not_mapping"} # type: ignore[arg-type]
309 with pytest.raises(TypeError):
310 h | {"not_mapping"} # type: ignore[operator]
311
312
313def test_headers_mutablecopy() -> None:

Callers

nothing calls this directly

Calls 1

MutableHeadersClass · 0.90

Tested by

no test coverage detected