HomeSoftware Heritage

Move all celery-related fixtures to the swh.scheduler pytest plugin

Description

Move all celery-related fixtures to the swh.scheduler pytest plugin

This allows us to reuse these fixtures in other modules without brittle
swh.scheduler.tests.conftest star imports.

Unfortunately, we can't really override pytest fixtures from one plugin to
another. We therefore reimplement the fixtures provided by celery, inlining the
static configuration and renaming them to our names in the process.

This also adds a backwards-compatibility import from pytest_plugin to conftest,
to allow old users of the conftest fixtures to keep working.

Details

Provenance
olasdAuthored on Jul 8 2020, 5:55 PM
olasdPushed on Jul 8 2020, 6:31 PM
Differential Revision
D3469: Move all celery-related fixtures to the swh.scheduler pytest plugin
Parents
rDSCHce63e6afd01b: pytest.ini: Drop filterwarnings which never worked
Branches
Unknown
Tags
Unknown
References
tag: v0.5.0
Build Status
Buildable 13497
Build 20651: test-and-buildJenkins console · Jenkins