Skip to content

Commit 173d3eb

Browse files
committed
fix unit test patching workspace.update_config
1 parent f7634f1 commit 173d3eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_configuration.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ def test_set_flake8_using_workspace_did_change_configuration(client_server_pair)
5454
is False
5555
)
5656

57-
with patch.object(server, "_hook") as mock_hook:
57+
with patch.object(server.workspace, "update_config") as mock_update_config:
5858
client._endpoint.notify(
5959
"workspace/didChangeConfiguration",
6060
{"settings": INITIALIZATION_OPTIONS},
6161
)
62-
wait_for_condition(lambda: mock_hook.call_count >= 1)
62+
wait_for_condition(lambda: mock_update_config.call_count >= 1)
6363

6464
for key, value in INITIALIZATION_OPTIONS["pylsp"]["plugins"].items():
6565
assert server.workspace._config.settings().get("plugins").get(key).get(

0 commit comments

Comments
 (0)