Skip to content

setup: Do no expose the pytest-plugin, let modules require it

Defining the pytest-plugin though the pytest-plugin [1] makes it loaded by default. This creates loading issues on modules depending on scheduler but not on the pytest plugin scheduler exposes as explained in the doc [2]

Instead we'll explicitely define to modules depending on the pytest plugins in their root conftest [3]:

pytest_plugins = [ "swh.scheduler.pytest_plugin" ]

Related to swh-storage!945 (closed) Related to T2484

Note: that will fix the debian build [4]

Test Plan

tox


Migrated from D3492 (view on Phabricator)

Merge request reports