mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
- Add pytest marker for integration tests - Configure automatic marking for tests/integration_tests/ folder via pytest hook - Split CI workflow into two jobs: regular tests (all platforms) and integration tests (Ubuntu only) - Integration tests can now be retried independently if they fail
9 lines
339 B
Python
9 lines
339 B
Python
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)
|