I think I've seen mention of a MockConsumer class, but the
kafka-python package I have available in my Conda setup doesn't seem
to have anything like that. Is this a Java-only thing or is there a
Python MockConsumer class I just haven't yet encountered in the wild?
I see this:

http://www.jesse-anderson.com/2016/11/unit-testing-kafka-consumers/

but that appears to be Java-specific.

Maybe it's not entirely necessary? Do people just unit test through a
development broker setup using fake messages sent to test-specific
topics?

Thx,

Skip Montanaro

Reply via email to