Repository navigation
test(repo): cover failure_excerpt and is_setup directly - #280
Conversation
Assisted-by: Claude Code Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
What was wrong, what you changed, how you checked:
failure_excerpt(the lines a report shows for a failing test) andis_setup(which files count as test setup) inrepo.pyhad no direct tests. I addedtests/test_repo_helpers.pywith 4 small offline tests. No Bite code changed.python -m pytest -n auto: 478 passed, 4 skipped.Fixes n/a
python -m pytestpasses.Assisted-by: Claude Code
Plain 3-line lesson
A helper with no test can break and nobody notices.
Small tests that pin down what a function does today make later changes safe.
Test the edges too: no match, too many lines, and upper vs lower case.
🤖 Generated with Claude Code
Summary by CodeRabbit