File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,23 +65,23 @@ def test_config_file(tmpdir, workspace):
65
65
66
66
def test_format_with_tab_size_option (workspace ):
67
67
doc = Document (DOC_URI , workspace , FOUR_SPACE_DOC )
68
- res = pyls_format_document (doc , { "tabSize" : "8" })
68
+ res = pylsp_format_document (doc , { "tabSize" : "8" })
69
69
70
70
assert len (res ) == 1
71
71
assert res [0 ]['newText' ] == FOUR_SPACE_DOC .replace (" " , " " )
72
72
73
73
74
74
def test_format_with_insert_spaces_option (workspace ):
75
75
doc = Document (DOC_URI , workspace , FOUR_SPACE_DOC )
76
- res = pyls_format_document (doc , { "insertSpaces" : False })
76
+ res = pylsp_format_document (doc , { "insertSpaces" : False })
77
77
78
78
assert len (res ) == 1
79
79
assert res [0 ]['newText' ] == FOUR_SPACE_DOC .replace (" " , "\t " )
80
80
81
81
82
82
def test_format_with_yapf_specific_option (workspace ):
83
83
doc = Document (DOC_URI , workspace , FOUR_SPACE_DOC )
84
- res = pyls_format_document (doc , { "USE_TABS" : True })
84
+ res = pylsp_format_document (doc , { "USE_TABS" : True })
85
85
86
86
assert len (res ) == 1
87
87
assert res [0 ]['newText' ] == FOUR_SPACE_DOC .replace (" " , "\t " )
You can’t perform that action at this time.
0 commit comments