MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_extra_headers_stash_roundtrip_and_isolation

Function test_extra_headers_stash_roundtrip_and_isolation

tests/test_config.py:107–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106
107def test_extra_headers_stash_roundtrip_and_isolation():
108 set_extra_headers({"A": "1"})
109 got = get_extra_headers()
110 assert got == {"A": "1"}
111 # Mutating the returned copy must not affect the stash.
112 got["B"] = "2"
113 assert get_extra_headers() == {"A": "1"}
114 set_extra_headers({})
115 assert get_extra_headers() == {}
116
117
118# --- timeout -----------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

set_extra_headersFunction · 0.90
get_extra_headersFunction · 0.90

Tested by

no test coverage detected