From 1619b89df7065fdc1a9ebe07ee457fc11ffc1f53 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 6 Jan 2016 07:14:30 +0100 Subject: [PATCH] pytest: Add a skip mark for use with bdd. --- pytest.ini | 1 + tests/conftest.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pytest.ini b/pytest.ini index 606c46cf2..9c93ab71d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -11,6 +11,7 @@ markers = not_xvfb: Tests which can't be run with Xvfb. frozen: Tests which can only be run if sys.frozen is True. integration: Tests which test a bigger portion of code, run without coverage. + skip: Always skipped test. flakes-ignore = UnusedImport UnusedVariable diff --git a/tests/conftest.py b/tests/conftest.py index f36edc93c..35a3235df 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -62,6 +62,7 @@ def _apply_platform_markers(item): "Can only run when frozen"), ('not_xvfb', item.config.xvfb_display is not None, "Can't be run with Xvfb."), + ('skip', True, "Always skipped."), ] for searched_marker, condition, default_reason in markers: