10
10
from pylsp .config .config import Config
11
11
from pylsp .workspace import Document , Workspace
12
12
13
- import pylsp_ruff .ruff_lint as ruff_lint
13
+ import pylsp_ruff .plugin as ruff_lint
14
14
15
15
DOC_URI = uris .from_fs_path (__file__ )
16
16
DOC = r"""import pylsp
@@ -73,7 +73,7 @@ def test_ruff_lint(workspace):
73
73
74
74
75
75
def test_ruff_config_param (workspace ):
76
- with patch ("pylsp_ruff.ruff_lint .Popen" ) as popen_mock :
76
+ with patch ("pylsp_ruff.plugin .Popen" ) as popen_mock :
77
77
mock_instance = popen_mock .return_value
78
78
mock_instance .communicate .return_value = [bytes (), bytes ()]
79
79
ruff_conf = "/tmp/pyproject.toml"
@@ -98,7 +98,7 @@ def test_ruff_config_param(workspace):
98
98
99
99
100
100
def test_ruff_executable_param (workspace ):
101
- with patch ("pylsp_ruff.ruff_lint .Popen" ) as popen_mock :
101
+ with patch ("pylsp_ruff.plugin .Popen" ) as popen_mock :
102
102
mock_instance = popen_mock .return_value
103
103
mock_instance .communicate .return_value = [bytes (), bytes ()]
104
104
@@ -160,7 +160,7 @@ def f():
160
160
continue
161
161
assert value is None
162
162
163
- with patch ("pylsp_ruff.ruff_lint .Popen" ) as popen_mock :
163
+ with patch ("pylsp_ruff.plugin .Popen" ) as popen_mock :
164
164
mock_instance = popen_mock .return_value
165
165
mock_instance .communicate .return_value = [bytes (), bytes ()]
166
166
0 commit comments