From f244234248ff01bb62e8ab66f94be0be07973910 Mon Sep 17 00:00:00 2001 From: Andrew Ekstedt Date: Sat, 20 Mar 2021 00:54:47 -0700 Subject: [PATCH] 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 --- conftest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conftest.py b/conftest.py index a1d0c76..86e4bcd 100644 --- a/conftest.py +++ b/conftest.py @@ -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