summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 2680207f7..ce5a2ce5b 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -122,6 +122,14 @@ def _apply_platform_markers(config, item):
f"Only runs on Qt 6, not {machinery.PACKAGE}"),
('qt5_xfail', pytest.mark.xfail, machinery.IS_QT5, "Fails on Qt 5"),
('qt6_xfail', pytest.mark.skipif, machinery.IS_QT6, "Fails on Qt 6"),
+ ('qtwebkit_skip',
+ pytest.mark.skipif,
+ config.webengine is False,
+ "Tests not applicable with QtWebKit"),
+ ('qtwebengine_skip',
+ pytest.mark.skipif,
+ config.webengine is True,
+ "Tests not applicable with QtWebEngine"),
]
for searched_marker, new_marker_kind, condition, default_reason in markers: