mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Register pytest.mark.slow marker
Pytest started warning about unknown markers at some point. Not sure when. My local version doesn't do it but the CI versions do. > PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
This commit is contained in:
parent
8bee908260
commit
15c5dd0ffc
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@ def pytest_runtest_setup(item):
|
||||||
if 'slow' in item.keywords and not item.config.getvalue('all'):
|
if 'slow' in item.keywords and not item.config.getvalue('all'):
|
||||||
pytest.skip("skipping slow tests")
|
pytest.skip("skipping slow tests")
|
||||||
|
|
||||||
|
def pytest_configure(config):
|
||||||
|
config.addinivalue_line("markers", "slow: marks tests as slow (require --all to run)")
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def session(request):
|
def session(request):
|
||||||
import pokedex.db
|
import pokedex.db
|
||||||
|
|
Loading…
Reference in a new issue