From eeba216cfe1b39dd33337d7774ddf8ca765ab4e1 Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Fri, 27 Sep 2019 08:39:50 -0500 Subject: [PATCH] Mark deprecated tests --- pytest.ini | 2 ++ test/test_compat_alt.py | 3 +++ test/test_compat_jinja.py | 3 +++ 3 files changed, 8 insertions(+) diff --git a/pytest.ini b/pytest.ini index c7fc1db..d032ea5 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,5 @@ [pytest] cache_dir = /tmp addopts = -ra +markers = + deprecated: marks tests for deprecated features (deselect with '-m "not deprecated"') diff --git a/test/test_compat_alt.py b/test/test_compat_alt.py index 6321252..e652a0c 100644 --- a/test/test_compat_alt.py +++ b/test/test_compat_alt.py @@ -6,6 +6,9 @@ import py import pytest import utils +# These tests are for the alternate processing in YADM_COMPATIBILITY=1 mode +pytestmark = pytest.mark.deprecated + # These test IDs are broken. During the writing of these tests, problems have # been discovered in the way yadm orders matching files. BROKEN_TEST_IDS = [ diff --git a/test/test_compat_jinja.py b/test/test_compat_jinja.py index 7d3c1aa..7e2b766 100644 --- a/test/test_compat_jinja.py +++ b/test/test_compat_jinja.py @@ -4,6 +4,9 @@ import os import pytest import utils +# These tests are for the template processing in YADM_COMPATIBILITY=1 mode +pytestmark = pytest.mark.deprecated + @pytest.fixture(scope='module') def envtpl_present(runner):