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

Function _reset_extra_headers

tests/conftest.py:7–13  ·  view source on GitHub ↗

Keep the process-wide LLM extra-headers / timeout stashes from leaking across tests.

()

Source from the content-addressed store, hash-verified

5
6@pytest.fixture(autouse=True)
7def _reset_extra_headers():
8 """Keep the process-wide LLM extra-headers / timeout stashes from leaking across tests."""
9 from openkb.config import set_extra_headers, set_timeout
10
11 yield
12 set_extra_headers({})
13 set_timeout(None)
14
15
16@pytest.fixture

Callers

nothing calls this directly

Calls 2

set_extra_headersFunction · 0.90
set_timeoutFunction · 0.90

Tested by

no test coverage detected