(tmp_path, monkeypatch)
| 72 | # --------------------------------------------------------------------------- |
| 73 | |
| 74 | def 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 | |
| 84 | def test_disable_env_true(tmp_path, monkeypatch): |
nothing calls this directly
no test coverage detected