fastmcp/tests/docs
William Easton 7ef5a14d6b
Add doc example validation test (syntax + import checks)
Uses pytest-examples to extract 1,448 Python code blocks from
docs/*.mdx and checks:
- Syntax: every example parses as valid Python
- Imports: every `from fastmcp.x import y` resolves

Current baseline (26 known failures):
- 8 syntax errors (error output as python, unquoted URLs, f-string backticks)
- 18 broken imports (renamed classes, wrong module paths, removed features)

Baselines ratchet down as doc examples are fixed.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 09:49:48 -05:00
..
__init__.py Add doc example validation test (syntax + import checks) 2026-04-12 09:49:48 -05:00
test_doc_examples.py Add doc example validation test (syntax + import checks) 2026-04-12 09:49:48 -05:00