https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 7009c3bfc210dc28dde5fe22b9ba0ad4c86b0a0f authored by Nicolas Dandrimont on 08 July 2020, 15:55:07 UTC, committed by Nicolas Dandrimont on 08 July 2020, 15:59:15 UTC
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.
1 parent ce63e6a
History
Tip revision: 7009c3bfc210dc28dde5fe22b9ba0ad4c86b0a0f authored by Nicolas Dandrimont on 08 July 2020, 15:55:07 UTC
Move all celery-related fixtures to the swh.scheduler pytest plugin
Tip revision: 7009c3b
File Mode Size
data
docs
sql
swh
.gitignore -rw-r--r-- 129 bytes
.pre-commit-config.yaml -rw-r--r-- 882 bytes
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 14 bytes
LICENSE -rw-r--r-- 34.3 KB
LICENSE.Celery -rw-r--r-- 2.6 KB
MANIFEST.in -rw-r--r-- 154 bytes
Makefile -rw-r--r-- 163 bytes
README.md -rw-r--r-- 292 bytes
conftest.py -rw-r--r-- 292 bytes
mypy.ini -rw-r--r-- 550 bytes
pyproject.toml -rw-r--r-- 39 bytes
pytest.ini -rw-r--r-- 30 bytes
requirements-swh.txt -rw-r--r-- 51 bytes
requirements-test.txt -rw-r--r-- 92 bytes
requirements.txt -rw-r--r-- 454 bytes
setup.cfg -rw-r--r-- 247 bytes
setup.py -rwxr-xr-x 2.4 KB
tox.ini -rw-r--r-- 664 bytes

README.md

back to top