Skip to content

Saleor Core: the high performance, composable, headless commerce API.

fix(tests): remove --run-slow argument for pytest (#19431)

Mikaild2f8f357f79d
diff --git a/conftest.py b/conftest.py
index 686fd38333..d4a9660b7f 100644
--- a/conftest.py
+++ b/conftest.py
@@ -50,32 +50,6 @@ pytest_plugins = [
]
-def pytest_addoption(parser):
- parser.addoption(
- "--run-slow",
- action="store_true",
- default=False,
- help="Run tests marked as slow.",
- )
-
-
-def pytest_configure(config):
- config.addinivalue_line("markers", "slow: mark test as slow")
-
-
-def pytest_collection_modifyitems(config, items):
- if config.getoption("--run-slow"):
- return
-
- skip_slow = pytest.mark.skip(
- reason="test is marked as slow and --run-slow is not passed"
- )
-
- for item in items:
- if "slow" in item.keywords:
- item.add_marker(skip_slow)
-
-
if os.environ.get("PYTEST_DB_URL"):
@pytest.fixture(scope="session")
diff --git a/pyproject.toml b/pyproject.toml
index 5a4dfd1d7d..43a6e42c4f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -174,6 +174,7 @@ filterwarnings = [
markers = [
"integration",
"e2e",
+ "slow",
]
[tool.poe.tasks]