(tmp_path)
| 129 | |
| 130 | |
| 131 | def test_collect_diagnostics_flags_kb_present(tmp_path): |
| 132 | class _Ctx: |
| 133 | obj = None |
| 134 | |
| 135 | with patch("openkb.cli._find_kb_dir", return_value=tmp_path): |
| 136 | info = _collect_feedback_diagnostics(_Ctx()) |
| 137 | |
| 138 | assert info["kb_initialised"] == "yes" |
| 139 | |
| 140 | |
| 141 | # --------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected