@@ -640,6 +640,7 @@ class TestRemoveTools:
640640
641641 def test_remove_existing_tool (self , caplog : pytest .LogCaptureFixture ):
642642 """Test removing an existing tool."""
643+
643644 def add (a : int , b : int ) -> int :
644645 """Add two numbers."""
645646 return a + b
@@ -671,6 +672,7 @@ def test_remove_nonexistent_tool(self, caplog: pytest.LogCaptureFixture):
671672
672673 def test_remove_tool_from_multiple_tools (self ):
673674 """Test removing one tool when multiple tools exist."""
675+
674676 def add (a : int , b : int ) -> int :
675677 """Add two numbers."""
676678 return a + b
@@ -706,6 +708,7 @@ def divide(a: int, b: int) -> float:
706708 @pytest .mark .anyio
707709 async def test_call_removed_tool_raises_error (self ):
708710 """Test that calling a removed tool raises ToolError."""
711+
709712 def greet (name : str ) -> str :
710713 """Greet someone."""
711714 return f"Hello, { name } !"
@@ -726,6 +729,7 @@ def greet(name: str) -> str:
726729
727730 def test_remove_tool_case_sensitive (self , caplog : pytest .LogCaptureFixture ):
728731 """Test that tool removal is case-sensitive."""
732+
729733 def test_func () -> str :
730734 """Test function."""
731735 return "test"
@@ -746,4 +750,4 @@ def test_func() -> str:
746750
747751 # Remove with correct case
748752 manager .remove_tool ("test_func" )
749- assert manager .get_tool ("test_func" ) is None
753+ assert manager .get_tool ("test_func" ) is None
0 commit comments