MCPcopy Create free account
hub / github.com/PrefectHQ/fastmcp / test_version_command_execution

Method test_version_command_execution

tests/cli/test_cli.py:59–63  ·  view source on GitHub ↗

Test that version command executes properly.

(self, mock_check)

Source from the content-addressed store, hash-verified

57
58 @patch("fastmcp.cli.cli.check_for_newer_version", return_value=None)
59 def test_version_command_execution(self, mock_check):
60 """Test that version command executes properly."""
61 # The version command should execute without raising SystemExit
62 command, bound, _ = app.parse_args(["version"])
63 command() # Should not raise
64
65 def test_version_command_parsing(self):
66 """Test that the version command parses arguments correctly."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected