Skip to content

Add pragma no cover to redis connection retry in conftest#264

Merged
chrisguidry merged 1 commit intomainfrom
fix-conftest-coverage
Dec 23, 2025
Merged

Add pragma no cover to redis connection retry in conftest#264
chrisguidry merged 1 commit intomainfrom
fix-conftest-coverage

Conversation

@chrisguidry
Copy link
Copy Markdown
Owner

The except ConnectionError in _wait_for_redis is a timing-dependent branch that's essentially impossible to reliably hit in tests - it fires when Redis hasn't started yet during container spinup. Marking it with pragma: no cover to avoid flaky coverage.

🤖 Generated with Claude Code

The `except ConnectionError` in `_wait_for_redis` is a timing-dependent
branch that's essentially impossible to reliably hit in tests - it fires
when Redis hasn't started yet during container spinup. Marking it with
`pragma: no cover` to avoid flaky coverage.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

📚 Documentation has been built for this PR!

You can download the documentation directly here:
https://github.com/chrisguidry/docket/actions/runs/20474037915/artifacts/4957649077

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1323b1b) to head (6fab908).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #264   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           55        55           
  Lines         9018      9016    -2     
  Branches       450       450           
=========================================
- Hits          9018      9016    -2     
Flag Coverage Δ
python-3.10 100.00% <ø> (ø)
python-3.11 98.71% <ø> (-0.02%) ⬇️
python-3.12 100.00% <ø> (ø)
python-3.13 100.00% <ø> (ø)
python-3.14 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
tests/conftest.py 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chrisguidry chrisguidry merged commit 7146a8f into main Dec 23, 2025
34 of 35 checks passed
@chrisguidry chrisguidry deleted the fix-conftest-coverage branch December 23, 2025 23:39
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.

2 participants