Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

test: remove 2 more redundant tests (MCP client + evidence analyzer) (#4261)

LearningCircuitaf4ed7c203bd
diff --git a/tests/advanced_search_system/constraint_checking/test_evidence_analyzer_extended.py b/tests/advanced_search_system/constraint_checking/test_evidence_analyzer_extended.py
index 077cfc3f7a..a27ccd4c7a 100644
--- a/tests/advanced_search_system/constraint_checking/test_evidence_analyzer_extended.py
+++ b/tests/advanced_search_system/constraint_checking/test_evidence_analyzer_extended.py
@@ -759,27 +759,6 @@ class TestEdgeCases:
# High negative should result in low score
assert score < 0.3
- def test_very_long_evidence_text(self):
- """Should handle very long evidence text."""
- mock_model = MagicMock()
- mock_response = MagicMock()
- mock_response.content = "POSITIVE: 0.5\nNEGATIVE: 0.3\nUNCERTAINTY: 0.2"
- mock_model.invoke = MagicMock(return_value=mock_response)
-
- analyzer = EvidenceAnalyzer(model=mock_model)
- constraint = Constraint(
- id="c1",
- type=ConstraintType.PROPERTY,
- description="Test",
- value="value",
- )
- long_text = "x" * 10000
- evidence = {"text": long_text, "source": "search"}
-
- result = analyzer.analyze_evidence_dual_confidence(evidence, constraint)
-
- assert len(result.evidence_text) == 500 # Truncated
-
def test_unicode_evidence_text(self):
"""Should handle unicode evidence text."""
mock_model = MagicMock()
diff --git a/tests/mcp/test_mcp_client_server_integration.py b/tests/mcp/test_mcp_client_server_integration.py
index 2f873f4d0d..73bbf5a86a 100644
--- a/tests/mcp/test_mcp_client_server_integration.py
+++ b/tests/mcp/test_mcp_client_server_integration.py
@@ -194,22 +194,6 @@ class TestMCPClientValidation:
assert "python" in ALLOWED_COMMANDS
assert "python3" in ALLOWED_COMMANDS
- def test_disallowed_command_raises_error(self):
- """Test that disallowed commands raise MCPClientError."""
- from local_deep_research.mcp.client import MCPClient, MCPClientError
-
- with patch("local_deep_research.mcp.client.MCP_AVAILABLE", True):
- config = {
- "name": "malicious",
- "command": "rm", # Not in allowed list
- "args": ["-rf", "/"],
- }
-
- with pytest.raises(MCPClientError) as exc_info:
- MCPClient(config)
-
- assert "not in allowed list" in str(exc_info.value)
-
def test_missing_command_raises_error(self):
"""Test that missing command raises MCPClientError."""
from local_deep_research.mcp.client import MCPClient, MCPClientError