MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_handles_empty_final_output

Method test_handles_empty_final_output

tests/test_linter.py:75–85  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

73
74 @pytest.mark.asyncio
75 async def test_handles_empty_final_output(self, tmp_path):
76 (tmp_path / "wiki").mkdir()
77
78 mock_result = MagicMock()
79 mock_result.final_output = None
80
81 with patch("openkb.agent.linter.Runner.run", new_callable=AsyncMock) as mock_run:
82 mock_run.return_value = mock_result
83 result = await run_knowledge_lint(tmp_path, "gpt-4o-mini")
84
85 assert "completed" in result.lower() or result != ""

Callers

nothing calls this directly

Calls 1

run_knowledge_lintFunction · 0.90

Tested by

no test coverage detected