Skip to content

Tests: send updates to a simplified Kafka broker instead of mocking#538

Draft
takluyver wants to merge 1 commit intomasterfrom
test/nafka
Draft

Tests: send updates to a simplified Kafka broker instead of mocking#538
takluyver wants to merge 1 commit intomasterfrom
test/nafka

Conversation

@takluyver
Copy link
Member

Instead of mocking the KafkaProducer & KafkaConsumer Python objects, this runs a mock Kafka broker in a background thread, and the real client objects send messages to it.

@codecov
Copy link

codecov bot commented Mar 2, 2026

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 79.36%. Comparing base (39f07f7) to head (b4508fb).

Files with missing lines Patch % Lines
damnit/definitions.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #538   +/-   ##
=======================================
  Coverage   79.36%   79.36%           
=======================================
  Files          38       38           
  Lines        7127     7128    +1     
=======================================
+ Hits         5656     5657    +1     
  Misses       1471     1471           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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