π The fast, Pythonic way to build MCP servers and clients.
Update testing.mdx
Jeremiah Lowin232edc2b0773
diff --git a/docs/patterns/testing.mdx b/docs/patterns/testing.mdxindex 82e4ee1c2..fc3a077e8 100644--- a/docs/patterns/testing.mdx+++ b/docs/patterns/testing.mdx@@ -36,3 +36,13 @@ async def test_tool_functionality(mcp_server):```This pattern creates a direct connection between the client and server, allowing you to test your server's functionality efficiently.++<Tip>+If you're using pytest for async tests, as shown above, you may need to configure appropriate markers or set `asyncio_mode = "auto"` in your pytest configuration in order to handle async test functions automatically.+</Tip>+++## Mocking++FastMCP servers are designed to work seamlessly with standard Python testing tools and patterns. There's nothing special about testing FastMCP servers - you can use all the familiar Python mocking, patching, and testing techniques you already know.+