From 72dc97c0c1eaf653cf2ec35db5e4139ad3090370 Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 10 Nov 2020 13:44:04 -0600 Subject: [PATCH] pytest: silence pytest warnings about unregistered 'slow_test' marker We've been getting a bunch of 'warnings' about an unknown mark. This silences the warning, by registering the mark as expected. =========================================================== warnings summary =========================================================== tests/test_closing.py:152 /home/niftynei/dev/lightning/tests/test_closing.py:152: PytestUnknownMarkWarning: Unknown pytest.mark.slow_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html @pytest.mark.slow_test tests/test_closing.py:214 /home/niftynei/dev/lightning/tests/test_closing.py:214: PytestUnknownMarkWarning: Unknown pytest.mark.slow_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html @pytest.mark.slow_test tests/test_closing.py:704 --- tests/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 59ad4da25..c9dcd26ab 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -16,3 +16,8 @@ def pytest_runtest_makereport(item, call): # be "setup", "call", "teardown" setattr(item, "rep_" + rep.when, rep) + + +def pytest_configure(config): + config.addinivalue_line("markers", + "slow_test: slow tests aren't run under Valgrind")