(tmp_path, monkeypatch)
| 82 | |
| 83 | |
| 84 | def 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 | |
| 94 | def test_responses_not_logged_by_default(tmp_path, monkeypatch): |
nothing calls this directly
no test coverage detected