Skip to content

Commit e713972

Browse files
committed
Update tests
1 parent 172e48d commit e713972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_workspace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_non_root_project(pylsp, metafiles):
7070
test_uri = uris.from_fs_path(os.path.join(project_root, "hello/test.py"))
7171
pylsp.workspace.put_document(test_uri, "assert True")
7272
test_doc = pylsp.workspace.get_document(test_uri)
73-
assert project_root in test_doc.sys_path()
73+
assert project_root in test_doc.get_enviroment().get_sys_path()
7474

7575

7676
def test_root_project_with_no_setup_py(pylsp):
@@ -79,7 +79,7 @@ def test_root_project_with_no_setup_py(pylsp):
7979
test_uri = uris.from_fs_path(os.path.join(workspace_root, "hello/test.py"))
8080
pylsp.workspace.put_document(test_uri, "assert True")
8181
test_doc = pylsp.workspace.get_document(test_uri)
82-
assert workspace_root in test_doc.sys_path()
82+
assert workspace_root in test_doc.get_enviroment().get_sys_path()
8383

8484

8585
def test_multiple_workspaces_from_initialize(pylsp_w_workspace_folders):

0 commit comments

Comments
 (0)