From 9018441adddece25dffe83d8cf95c82b34aa5e9c Mon Sep 17 00:00:00 2001 From: Ross Bencina Date: Sun, 1 Oct 2023 14:57:16 +1100 Subject: [PATCH] chore: fix use of deprecated methods in tests/test_language_server.py --- tests/test_language_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_language_server.py b/tests/test_language_server.py index 10acce62..5271ff58 100644 --- a/tests/test_language_server.py +++ b/tests/test_language_server.py @@ -82,9 +82,9 @@ def test_bf_text_document_did_open(client_server): sleep(1) - assert len(server.lsp.workspace.documents) == 1 + assert len(server.lsp.workspace.text_documents) == 1 - document = server.workspace.get_document(__file__) + document = server.workspace.get_text_document(__file__) assert document.uri == __file__ assert document.version == 1 assert document.source == "test"