π The fast, Pythonic way to build MCP servers and clients.
Mock network call in test_version_command_execution
claude[bot]cd085412d1d4
diff --git a/tests/cli/test_cli.py b/tests/cli/test_cli.pyindex a6ab3b8a7..703771dff 100644--- a/tests/cli/test_cli.py+++ b/tests/cli/test_cli.py@@ -39,7 +39,8 @@ class TestMainCLI:class TestVersionCommand:"""Test the version command."""- def test_version_command_execution(self):+ @patch("fastmcp.cli.cli.check_for_newer_version", return_value=None)+ def test_version_command_execution(self, mock_check):"""Test that version command executes properly."""# The version command should execute without raising SystemExitcommand, bound, _ = app.parse_args(["version"])