Skip to content

Commit 9f18d6b

Browse files
Fix pre-commit linting issues
- Remove unused pytest import - Fix f-string formatting for better readability - Clean up empty __init__.py files - Fix end-of-file formatting
1 parent 1effdb9 commit 9f18d6b

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
2-

tests/cli/mcp/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

tests/cli/mcp/test_simple_integration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from unittest.mock import patch
44

5-
import pytest
6-
75

86
class 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."""

0 commit comments

Comments
 (0)