Skip to content
Snippets Groups Projects
Commit b7b88f11 authored by Moul's avatar Moul
Browse files

Skip DeathReaper tests when `pydiscourse` is not importable (#443)

Depending whether Poetry virtualenv contains `pydiscourse`,
it will skip or not `tests.unit.wot.exclusions`

pydiscourse is installed when specifying `poetry install --extras deathreaper`

https://docs.pytest.org/en/7.1.x/how-to/skipping.html#skipping-on-a-missing-import-dependency
parent fedabd49
No related branches found
No related tags found
1 merge request!256Skip DeathReaper tests when `pydiscourse` is not importable (#443)
Pipeline #34542 passed
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
import pytest import pytest
pytest.importorskip(
"pydiscourse",
reason="pydiscourse can't be imported, skipping deathreaper tests",
)
from silkaj.wot import exclusions from silkaj.wot import exclusions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment