forked from Github-Mirrors/canaille
tests: fix unit tests with pytest-xdist
This commit is contained in:
parent
288ad161d3
commit
c10a33da6d
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ def pytest_generate_tests(metafunc):
|
|||
backends = available_backends()
|
||||
if metafunc.config.getoption("backend"): # pragma: no cover
|
||||
backends &= set(metafunc.config.getoption("backend"))
|
||||
backends = sorted(backends)
|
||||
|
||||
# tests in tests.backends.BACKENDNAME should only run one backend
|
||||
module_name_parts = metafunc.module.__name__.split(".")
|
||||
|
|
Loading…
Reference in a new issue