File tree Expand file tree Collapse file tree
src/codegen/cli/commands/mcp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1-
2-
Original file line number Diff line number Diff line change 1-
Original file line number Diff line number Diff line change 22
33from unittest .mock import patch
44
5- import pytest
6-
75
86class TestMCPSimpleIntegration :
97 """Simple integration tests that avoid FastMCP import issues."""
@@ -22,7 +20,8 @@ def test_api_client_imports_available(self):
2220 assert UsersApi is not None
2321
2422 except ImportError as e :
25- raise AssertionError (f"API client imports not available: { e } " ) from e
23+ msg = f"API client imports not available: { e } "
24+ raise AssertionError (msg ) from e
2625
2726 def test_mcp_command_registration (self ):
2827 """Test that the MCP command is registered in the CLI."""
@@ -58,7 +57,8 @@ def test_server_configuration_basic(self):
5857
5958 assert callable (mcp )
6059 except ImportError as e :
61- raise AssertionError (f"MCP command module not importable: { e } " ) from e
60+ msg = f"MCP command module not importable: { e } "
61+ raise AssertionError (msg ) from e
6262
6363 def test_environment_variable_handling_basic (self ):
6464 """Test basic environment variable handling."""
You can’t perform that action at this time.
0 commit comments