Skip to main content
Glama

Gemini MCP Server

test_line_numbers_integration.pyโ€ข1.72 kB
""" Integration test demonstrating that all tools get line numbers by default. """ from tools.analyze import AnalyzeTool from tools.chat import ChatTool from tools.codereview import CodeReviewTool from tools.debug import DebugIssueTool from tools.precommit import PrecommitTool from tools.refactor import RefactorTool from tools.testgen import TestGenTool class TestLineNumbersIntegration: """Test that all tools inherit line number behavior correctly.""" def test_all_tools_want_line_numbers(self): """Verify that all tools want line numbers by default.""" tools = [ ChatTool(), AnalyzeTool(), CodeReviewTool(), DebugIssueTool(), RefactorTool(), TestGenTool(), PrecommitTool(), ] for tool in tools: assert tool.wants_line_numbers_by_default(), f"{tool.get_name()} should want line numbers by default" def test_no_tools_override_line_numbers(self): """Verify that no tools override the base class line number behavior.""" # Check that tools don't have their own wants_line_numbers_by_default method tools_classes = [ ChatTool, AnalyzeTool, CodeReviewTool, DebugIssueTool, RefactorTool, TestGenTool, PrecommitTool, ] for tool_class in tools_classes: # Check if the method is defined in the tool class itself # (not inherited from base) has_override = "wants_line_numbers_by_default" in tool_class.__dict__ assert not has_override, f"{tool_class.__name__} should not override wants_line_numbers_by_default"

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BeehiveInnovations/gemini-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server