[tool:pytest] # Comprehensive pytest configuration for MCP AI Data Scientist # Test discovery testpaths = tests python_files = test_*.py python_classes = Test* python_functions = test_* # Test execution with coverage addopts = -v --tb=short --strict-markers --disable-warnings --color=yes --cov=mcp_servers --cov=orchestrator --cov=streamlit_app --cov=shared --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov-report=term-missing --cov-fail-under=90 --cov-branch # Markers for different test types markers = unit: Unit tests for individual components integration: Integration tests for component interactions ui: UI and user interaction tests slow: Tests that take longer to run streamlit: Tests specific to Streamlit components mcp: Tests for MCP server functionality auth: Authentication and authorization tests database: Database operation tests api: API endpoint tests performance: Performance and load tests security: Security and penetration tests # Minimum version requirements minversion = 6.0 # Test timeout (in seconds) timeout = 300 # Coverage configuration [tool:coverage:run] source = mcp_servers,orchestrator,streamlit_app,shared omit = */tests/* */venv/* */__pycache__/* */migrations/* */alembic/* setup.py [tool:coverage:report] exclude_lines = pragma: no cover def __repr__ if self.debug: if settings.DEBUG raise AssertionError raise NotImplementedError if 0: if __name__ == .__main__.: class .*\bProtocol\): @(abc\.)?abstractmethod # Ignore certain warnings filterwarnings = ignore::DeprecationWarning ignore::PendingDeprecationWarning ignore::UserWarning:streamlit.* ignore::UserWarning:pandas.*