MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / every_env

Function every_env

tests/test_tracing.py:303–308  ·  view source on GitHub ↗

Sets every variable to something other than the default.

(monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

301
302@pytest.fixture
303def every_env(monkeypatch: pytest.MonkeyPatch) -> None:
304 """Sets every variable to something other than the default."""
305 monkeypatch.setenv(ENV, "false")
306 monkeypatch.setenv(PROPAGATION_ENV, "false")
307 monkeypatch.setenv(f"{ENV}_TRACES_CONTENT_MODE", "content")
308 monkeypatch.setenv(f"{ENV}_TRACES_MAX_CONTENT_BYTES", "300")
309
310
311@pytest.mark.usefixtures("every_env")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected