test_query_with_partial_overlap uses query “Python Django web framework” against a chunk containing all four query terms, then asserts the score is below 0.9. The scorer correctly returns 1.0 for full keyword coverage, so the test fails against correct behavior. Fix the fixture so the overlap is genuinely partial.
Steps to reproduce: pytest tests/unit/test_relevance_scorer.py -q — observed: assert 1.0 < 0.9 fails.
test_query_with_partial_overlapuses query “Python Django web framework” against a chunk containing all four query terms, then asserts the score is below 0.9. The scorer correctly returns 1.0 for full keyword coverage, so the test fails against correct behavior. Fix the fixture so the overlap is genuinely partial.Steps to reproduce:
pytest tests/unit/test_relevance_scorer.py -q— observed:assert 1.0 < 0.9fails.