@@ -689,13 +689,20 @@ def test_workspaceSymbol_with_empty_query(self):
689689 def test_goToImplementation (self ):
690690 with tempfile .TemporaryDirectory () as tmpdir :
691691 f = Path (tmpdir ) / "sample.py"
692- f .write_text ("class Base:\n pass\n class Derived(Base):\n pass\n " , encoding = "utf-8" )
692+ f .write_text (
693+ "class Base:\n pass\n class Derived(Base):\n pass\n " , encoding = "utf-8"
694+ )
693695 client = _fake_server (
694696 {"textDocument/implementation" : [{"uri" : "file:///x.py" , "range" : {}}]}
695697 )
696698 with mock .patch .object (tools_lsp , "get_client" , return_value = (client , "k" )):
697699 result = LSP ().run (
698- {"operation" : "goToImplementation" , "file_path" : str (f ), "line" : 2 , "character" : 1 },
700+ {
701+ "operation" : "goToImplementation" ,
702+ "file_path" : str (f ),
703+ "line" : 2 ,
704+ "character" : 1 ,
705+ },
699706 ToolContext (SimpleNamespace (project_dir = tmpdir )),
700707 )
701708 self .assertIn ("file:///x.py" , result )
@@ -708,7 +715,12 @@ def test_prepareCallHierarchy(self):
708715 client = _fake_server ({"textDocument/prepareCallHierarchy" : [item ]})
709716 with mock .patch .object (tools_lsp , "get_client" , return_value = (client , "k" )):
710717 result = LSP ().run (
711- {"operation" : "prepareCallHierarchy" , "file_path" : str (f ), "line" : 1 , "character" : 1 },
718+ {
719+ "operation" : "prepareCallHierarchy" ,
720+ "file_path" : str (f ),
721+ "line" : 1 ,
722+ "character" : 1 ,
723+ },
712724 ToolContext (SimpleNamespace (project_dir = tmpdir )),
713725 )
714726 self .assertIn ("hello" , result )
0 commit comments