MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_disable_env

Function test_disable_env

tests/test_querylog.py:74–81  ·  view source on GitHub ↗
(tmp_path, monkeypatch)

Source from the content-addressed store, hash-verified

72# ---------------------------------------------------------------------------
73
74def test_disable_env(tmp_path, monkeypatch):
75 log_file = tmp_path / "q.log"
76 monkeypatch.setenv("GRAPHIFY_QUERY_LOG", str(log_file))
77 monkeypatch.setenv("GRAPHIFY_QUERY_LOG_DISABLE", "1")
78
79 log_query(kind="query", question="q", corpus="/g.json")
80
81 assert not log_file.exists()
82
83
84def test_disable_env_true(tmp_path, monkeypatch):

Callers

nothing calls this directly

Calls 1

log_queryFunction · 0.90

Tested by

no test coverage detected