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 4 shadow weighted_score tests that tested local reimplementation (#4256)

LearningCircuit2f95aa1fa2e4
diff --git a/tests/advanced_search_system/constraint_checking/test_base_constraint_checker.py b/tests/advanced_search_system/constraint_checking/test_base_constraint_checker.py
index 67bcb5c996..5f9fa801c0 100644
--- a/tests/advanced_search_system/constraint_checking/test_base_constraint_checker.py
+++ b/tests/advanced_search_system/constraint_checking/test_base_constraint_checker.py
@@ -165,53 +165,6 @@ class TestGatherEvidenceForConstraint:
assert result == []
-class TestCalculateWeightedScore:
- """Tests for _calculate_weighted_score method."""
-
- def test_calculate_weighted_score_equal_weights(self):
- """Calculates weighted average with equal weights."""
- mock_model = Mock()
- checker = ConcreteConstraintChecker(mock_model)
-
- scores = [0.8, 0.6, 0.4]
- weights = [1.0, 1.0, 1.0]
-
- result = checker._calculate_weighted_score(scores, weights)
-
- assert abs(result - 0.6) < 0.01 # Average of 0.8, 0.6, 0.4
-
- def test_calculate_weighted_score_different_weights(self):
- """Calculates weighted average with different weights."""
- mock_model = Mock()
- checker = ConcreteConstraintChecker(mock_model)
-
- scores = [1.0, 0.0]
- weights = [2.0, 1.0]
-
- result = checker._calculate_weighted_score(scores, weights)
-
- # (1.0 * 2.0 + 0.0 * 1.0) / 3.0 = 0.667
- assert abs(result - 0.667) < 0.01
-
- def test_calculate_weighted_score_empty_lists(self):
- """Returns 0.0 for empty lists."""
- mock_model = Mock()
- checker = ConcreteConstraintChecker(mock_model)
-
- result = checker._calculate_weighted_score([], [])
-
- assert result == 0.0
-
- def test_calculate_weighted_score_empty_scores(self):
- """Returns 0.0 for empty scores."""
- mock_model = Mock()
- checker = ConcreteConstraintChecker(mock_model)
-
- result = checker._calculate_weighted_score([], [1.0, 2.0])
-
- assert result == 0.0
-
-
class TestCheckCandidate:
"""Tests for check_candidate method."""