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

Function test_disable_env_true

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

Source from the content-addressed store, hash-verified

82
83
84def test_disable_env_true(tmp_path, monkeypatch):
85 log_file = tmp_path / "q.log"
86 monkeypatch.setenv("GRAPHIFY_QUERY_LOG", str(log_file))
87 monkeypatch.setenv("GRAPHIFY_QUERY_LOG_DISABLE", "true")
88
89 log_query(kind="query", question="q", corpus="/g.json")
90
91 assert not log_file.exists()
92
93
94def test_responses_not_logged_by_default(tmp_path, monkeypatch):

Callers

nothing calls this directly

Calls 1

log_queryFunction · 0.90

Tested by

no test coverage detected