Skip to content

Commit 4933e65

Browse files
committed
integration tests are dependent on directory alone
1 parent 5a1b1e7 commit 4933e65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def pytest_configure(config):
4040
def pytest_collection_modifyitems(items):
4141
# All tests defined in tests/integration are considered integration tests.
4242
for item in items:
43-
item.add_marker("integration")
43+
directory = item.path.parent
44+
if directory.name == "integration" and directory.parent.name == "tests":
45+
item.add_marker("integration")
4446

4547

4648
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)