We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a1b1e7 commit 4933e65Copy full SHA for 4933e65
tests/integration/conftest.py
@@ -40,7 +40,9 @@ def pytest_configure(config):
40
def pytest_collection_modifyitems(items):
41
# All tests defined in tests/integration are considered integration tests.
42
for item in items:
43
- item.add_marker("integration")
+ directory = item.path.parent
44
+ if directory.name == "integration" and directory.parent.name == "tests":
45
+ item.add_marker("integration")
46
47
48
@pytest.fixture(scope="session")
0 commit comments