From d7a78f89d0877e1688f999e1d188fc519e5049d5 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 9 Aug 2024 12:51:00 +0200 Subject: [PATCH] [FIX] conftest: pytest warning Forgot to declare `defaultstatuses` when it was introduced in f367a64481e1c88a5b9cb239e599a44a7c6e3a90. pytest righteously warns when markers are not declated, so do that (turns out running pytest with `-We` can be useful, though it also requires `-W ignore::DeprecationWarning::importlib._boostrap` because reportlab does weird shit). --- conftest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conftest.py b/conftest.py index 83d24896..8a770095 100644 --- a/conftest.py +++ b/conftest.py @@ -87,7 +87,7 @@ def pytest_addoption(parser): parser.addoption('--coverage', action='store_true') parser.addoption( - '--tunnel', action="store", type="choice", choices=['', 'ngrok', 'localtunnel'], default='', + '--tunnel', action="store", choices=['', 'ngrok', 'localtunnel'], default='', help="Which tunneling method to use to expose the local Odoo server " "to hook up github's webhook. ngrok is more reliable, but " "creating a free account is necessary to avoid rate-limiting " @@ -105,6 +105,10 @@ def pytest_configure(config): "markers", "expect_log_errors(reason): allow and require tracebacks in the log", ) + config.addinivalue_line( + "markers", + "defaultstatuses: use the statuses `default` rather than `ci/runbot,legal/cla`", + ) def pytest_unconfigure(config): if not is_manager(config):