Skip to content

test: improve coverage for retry and provider_data - #54

Open
samuelrojas-dev wants to merge 1 commit into
mainfrom
test/coverage-retry-provider-data
Open

samuelrojas-dev wants to merge 1 commit into
mainfrom
test/coverage-retry-provider-data

Conversation

@samuelrojas-dev

Copy link
Copy Markdown
Owner

Summary

  • Add tests for count_tokens retry/exhaustion paths and begin_episode delegation in RetryingProvider
  • Add direct tests for GeminiCodec encode/decode with mocked google.genai types, passthrough paths, and codec cache
  • provider_data.py: 69% → 100% coverage
  • retry.py: 89% → 94% coverage
  • Overall: 96% coverage

Test plan

  • All 21 new tests pass (pytest tests/test_provider_data.py tests/test_retry.py -v)
  • Full suite passes with no regressions (pytest --cov=dowbench)
  • No API keys or network access needed (mocks only)

Generated by Claude Code

Add tests for count_tokens retry/exhaustion paths and begin_episode
delegation in RetryingProvider. Add direct tests for GeminiCodec
encode/decode with mocked google.genai types, passthrough paths,
and codec cache. provider_data.py goes from 69% to 100%, retry.py
from 89% to 94%.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WUfEahsTXEpnGdTvHgNdvD

This branch has not been deployed

No deployments
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