HomeSoftware Heritage

Extract kafka-related pytest fixtures in a pytest plugin module

Description

Extract kafka-related pytest fixtures in a pytest plugin module

so it can be used from other packages.

  • put all fixtures as well as the 2 consume_messages() and assert_all_objects_consumed() utility functions in swh.journal.pytest_plugin,
  • move all hardcoded test data in a dedicated swh.journal.tests.journal_data module,
  • declare this new pytest_plugin via the pytest11 entry point.