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:
Andrew Ekstedt 2021-03-20 00:54:47 -07:00
parent 2faa3ed6af
commit f244234248

View file

@ -21,6 +21,9 @@ def pytest_runtest_setup(item):
if 'slow' in item.keywords and not item.config.getvalue('all'):
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")
def session(request):
import pokedex.db