Spaces:
Running
Running
File size: 339 Bytes
b6e3626 | 1 2 3 4 5 6 7 8 9 10 | import pytest
def pytest_collection_modifyitems(items):
"""Automatically mark tests in integration_tests folder with 'integration' marker."""
for item in items:
# Check if the test is in the integration_tests folder
if "integration_tests" in str(item.fspath):
item.add_marker(pytest.mark.integration)
|