HomeSoftware Heritage

Replace pytest-kafka with the built-in confluent-kafka-python mock broker

Description

Replace pytest-kafka with the built-in confluent-kafka-python mock broker

This removes the dependency on java and a full kafka install for the tests of
swh.journal, which should help keep integration tests in other split off
components. They also feel a little bit faster (1m25s instead of 2m40s on this
machine).

Details

Provenance
olasdAuthored on Apr 22 2020, 12:54 PM
olasdPushed on Apr 22 2020, 1:48 PM
Differential Revision
D3030: Remove the use of pytest-kafka
Parents
rDJNL18518795e535: Replace expensive "Large directory" tests with a mock jogging the same codepath
Branches
Unknown
Tags
Unknown
Build Status
Buildable 11972
Build 18147: test-and-buildJenkins console · Jenkins