Skip to content

fix: resolve test warnings and add README badges - #62

Merged
xfgong merged 1 commit into
mainfrom
fix/test-warnings-and-badges
May 10, 2026
Merged

fix: resolve test warnings and add README badges#62
xfgong merged 1 commit into
mainfrom
fix/test-warnings-and-badges

Conversation

@xfgong

@xfgong xfgong commented May 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited in TestAnthropicProviderHooks by setting mock_stream.response = MagicMock(status_code=200, headers={}) instead of letting AsyncMock auto-create child AsyncMock objects
  • Add Codecov upload to CI (Python 3.13 matrix only)
  • Add badges to README: CI status, Codecov coverage, PyPI version, Python versions, License

Badges added

Badge Source
CI GitHub Actions workflow badge
Coverage Codecov (needs repo activation at codecov.io)
PyPI shields.io dynamic from PyPI
Python shields.io dynamic from PyPI
License shields.io static

Note

Codecov badge requires activating the repo at https://app.codecov.io/gh/cubeplexai/cubepi. For public repos, no token is needed.

Fix RuntimeWarning in TestAnthropicProviderHooks by setting explicit
mock_stream.response instead of letting AsyncMock auto-create child
AsyncMocks. Add Codecov upload to CI and badges to README.
@xfgong
xfgong merged commit de61d80 into main May 10, 2026
4 checks passed
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