From 181e39bcfbcec92b1fab6e14bebd37040602e492 Mon Sep 17 00:00:00 2001 From: Alexander Myasoedov Date: Sun, 2 Mar 2025 19:03:39 +0200 Subject: [PATCH] feat(add slow test pytest cfg): --- tests/conftest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index e69de29..85a0fbb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -0,0 +1,7 @@ +import pytest +import os + + +def pytest_runtest_setup(item): + if "slow" in item.keywords and not os.getenv("RUN_SLOW_TESTS"): + pytest.skip("Skipping slow test")