alm0ra / mockafka-py

Mockafka-py is a Python library designed for in-memory mocking of Kafka.[aiokafka - confluence-kafka-python]
https://mockafka-py.readthedocs.io
MIT License
47 stars 11 forks source link

:bug: Fix #149 - Ensure Compatibility with aiokafka ConsumerRecord Headers #150

Open alm0ra opened 3 months ago

alm0ra commented 3 months ago

This PR addresses issue #149 by enhancing the header handling logic to ensure compatibility with aiokafka's ConsumerRecord. Specifically, the headers are now processed as a 'Sequence[Tuple[str, bytes]]', which aligns with aiokafka's expected format. This change prevents potential errors when dealing with Kafka message headers in the application.

codecov-commenter commented 3 months ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 97.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 98.10%. Comparing base (c0eb9fc) to head (82f986d). Report is 4 commits behind head on main.

Files Patch % Lines
mockafka/aiokafka/aiokafka_consumer.py 83.33% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #150 +/- ## ========================================== - Coverage 98.12% 98.10% -0.03% ========================================== Files 35 35 Lines 1497 1528 +31 ========================================== + Hits 1469 1499 +30 - Misses 28 29 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.