Some checks failed
Contributor Attribution Check / check-attribution (pull_request) Failing after 40s
Docker Build and Publish / build-and-push (pull_request) Has been skipped
Supply Chain Audit / Scan PR for supply chain risks (pull_request) Successful in 40s
Tests / e2e (pull_request) Successful in 3m1s
Tests / test (pull_request) Failing after 39m36s
Resolves #779. Two issues fixed: tests/acp/conftest.py (new): - Module-level collect_ignore when acp is not installed - Prevents pytest --collect-only from failing with ModuleNotFoundError - 6 ACP test files cleanly skipped instead of erroring tests/conftest.py: - Registered ssh, integration, slow pytest markers - Eliminates PytestUnknownMarkWarning Before: 11,470 collected, 6 errors After: 11,472 collected, 0 errors
21 lines
561 B
Python
21 lines
561 B
Python
"""ACP test conftest — skip collection when acp extra not installed.
|
|
|
|
This conftest.py uses collect_ignore at module level to prevent
|
|
pytest from trying to import test files that depend on acp.
|
|
"""
|
|
|
|
try:
|
|
import acp # noqa: F401
|
|
except ImportError:
|
|
# Tell pytest to skip this entire directory during collection
|
|
collect_ignore = [
|
|
"test_entry.py",
|
|
"test_events.py",
|
|
"test_mcp_e2e.py",
|
|
"test_permissions.py",
|
|
"test_server.py",
|
|
"test_session.py",
|
|
"test_tools.py",
|
|
"test_auth.py",
|
|
]
|