MCPcopy Create free account
hub / github.com/encode/starlette / test_mutable_headers_merge_not_mapping

Function test_mutable_headers_merge_not_mapping

tests/test_datastructures.py:357–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

355
356
357def test_mutable_headers_merge_not_mapping() -> None:
358 h = MutableHeaders()
359 with pytest.raises(TypeError):
360 h |= {"not_mapping"} # type: ignore[arg-type]
361 with pytest.raises(TypeError):
362 h | {"not_mapping"} # type: ignore[operator]
363
364
365def test_headers_mutablecopy() -> None:

Callers

nothing calls this directly

Calls 1

MutableHeadersClass · 0.90

Tested by

no test coverage detected