HomeSoftware Heritage

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

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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
Build Status
Buildable 13497
Build 20651: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.