Closed PeterJCLaw closed 2 weeks ago
Assuming that this isn't expected, I think we could adapt this in the FakeAIOKafkaConsumer
class -- converting from the Message
type to ConsumerRecord
. What might make that interesting is that Message
indicates that almost all of its fields are optional, whereas ConsumerRecord
requires almost all fields to be present.
The
Message
class provided by this project and returned from e.g:FakeAIOKafkaConsumer.getone
appears to be incompatible with theConsumerRecord
class provided byaiokafka
.Is this expected? Perhaps instead the structs from the mocked libraries could be used directly?