11# Copyright 2017-2020 Palantir Technologies, Inc.
22# Copyright 2021- Python Language Server Contributors.
33
4- import test
54from pathlib import Path
65
76import pytest
87
8+ import test
99from pylsp import uris
1010from pylsp .config .config import Config
1111from pylsp .plugins .rope_implementation import pylsp_implementations
@@ -42,12 +42,12 @@ def workspace(examples_dir_path: Path, endpoint) -> None:
4242
4343def test_implementations (config , workspace , doc_uri ) -> None :
4444 # Over 'fly' in WingedAnimal.fly
45- cursor_pos = {"line" : 14 , "character" : 8 }
45+ cursor_pos = {"line" : 15 , "character" : 8 }
4646
4747 # The implementation of 'Bird.fly'
4848 def_range = {
49- "start" : {"line" : 21 , "character" : 8 },
50- "end" : {"line" : 21 , "character" : 11 },
49+ "start" : {"line" : 22 , "character" : 8 },
50+ "end" : {"line" : 22 , "character" : 11 },
5151 }
5252
5353 doc = workspace .get_document (doc_uri )
@@ -58,12 +58,12 @@ def test_implementations(config, workspace, doc_uri) -> None:
5858
5959def test_implementations_skipping_one_class (config , workspace , doc_uri ) -> None :
6060 # Over 'Animal.breathe'
61- cursor_pos = {"line" : 4 , "character" : 8 }
61+ cursor_pos = {"line" : 5 , "character" : 8 }
6262
6363 # The implementation of 'breathe', skipping intermediate classes
6464 def_range = {
65- "start" : {"line" : 18 , "character" : 8 },
66- "end" : {"line" : 18 , "character" : 15 },
65+ "start" : {"line" : 19 , "character" : 8 },
66+ "end" : {"line" : 19 , "character" : 15 },
6767 }
6868
6969 doc = workspace .get_document (doc_uri )
@@ -77,12 +77,12 @@ def test_implementations_skipping_one_class(config, workspace, doc_uri) -> None:
7777)
7878def test_property_implementations (config , workspace , doc_uri ) -> None :
7979 # Over 'Animal.size'
80- cursor_pos = {"line" : 9 , "character" : 9 }
80+ cursor_pos = {"line" : 10 , "character" : 9 }
8181
8282 # The property implementation 'Bird.size'
8383 def_range = {
84- "start" : {"line" : 25 , "character" : 8 },
85- "end" : {"line" : 25 , "character" : 12 },
84+ "start" : {"line" : 26 , "character" : 8 },
85+ "end" : {"line" : 26 , "character" : 12 },
8686 }
8787
8888 doc = workspace .get_document (doc_uri )
@@ -93,7 +93,7 @@ def test_property_implementations(config, workspace, doc_uri) -> None:
9393
9494def test_implementations_not_a_method (config , workspace , doc_uri ) -> None :
9595 # Over 'print(...)' call
96- cursor_pos = {"line" : 28 , "character" : 0 }
96+ cursor_pos = {"line" : 29 , "character" : 0 }
9797
9898 doc = workspace .get_document (doc_uri )
9999
0 commit comments