Skip to content

Add comprehensive async test suite#14

Merged
enaboapps merged 1 commit intomasterfrom
feature/async-tests-4
Feb 16, 2026
Merged

Add comprehensive async test suite#14
enaboapps merged 1 commit intomasterfrom
feature/async-tests-4

Conversation

@enaboapps
Copy link
Owner

Summary

  • Add TestAsyncClient class with 10 async tests covering flush_async, flow_async, disconnect_async, and async context manager
  • Tests use pytest-httpx for HTTP mocking
  • Increases test count from 26 to 36

Closes #4

Test plan

  • All 36 tests pass

- Add TestAsyncClient class with 10 async tests
- Test flush_async: empty queue, no API key, sends logs, requeues on failure
- Test flow_async: requires API key, creates flow, handles invalid/error responses
- Test disconnect_async: flushes and cleans up
- Test async context manager

Closes #4

🤖 Auto-generated
@enaboapps enaboapps added this to the v1.1.0 milestone Feb 16, 2026
@enaboapps enaboapps merged commit c1af253 into master Feb 16, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 16, 2026

Warning

Rate limit exceeded

@enaboapps has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 25 minutes and 15 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/async-tests-4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@enaboapps enaboapps deleted the feature/async-tests-4 branch February 16, 2026 10:18
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.

Add comprehensive async test suite

2 participants