Skip to content

Test citation-correctness branch in eval.run - #2

Merged
sahilkalgutkar merged 1 commit into
mainfrom
test-citation-coverage
Aug 18, 2026
Merged

sahilkalgutkar merged 1 commit into
mainfrom
test-citation-coverage

Conversation

@sahilkalgutkar

Copy link
Copy Markdown
Owner

Summary

  • Adds a test for the previously-uncovered citation-checking branch in eval/run.py (was 74% covered, now 98%)
  • Mocks the Anthropic client to exercise both a correctly-cited answer and a wrongly-cited one, without needing a real API key
  • Overall coverage: 84% -> 88.5%

Test plan

  • pytest tests/ -v --cov=... passes locally (30 tests)
  • ruff check . clean

Previously untested (74% coverage on eval/run.py); mocks the Anthropic
client to cover both the correctly-cited and wrongly-cited cases
without a real API key.
@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sahilkalgutkar
sahilkalgutkar merged commit 85ded72 into main Aug 18, 2026
2 checks passed
@sahilkalgutkar
sahilkalgutkar deleted the test-citation-coverage branch August 18, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant