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 @@ -72,23 +72,23 @@ def test_cr_line_endings(workspace):
72
72
73
73
def test_format_with_tab_size_option (workspace ):
74
74
doc = Document (DOC_URI , workspace , FOUR_SPACE_DOC )
75
- res = pyls_format_document (doc , { "tabSize" : "8" })
75
+ res = pylsp_format_document (doc , { "tabSize" : "8" })
76
76
77
77
assert len (res ) == 1
78
78
assert res [0 ]['newText' ] == FOUR_SPACE_DOC .replace (" " , " " )
79
79
80
80
81
81
def test_format_with_insert_spaces_option (workspace ):
82
82
doc = Document (DOC_URI , workspace , FOUR_SPACE_DOC )
83
- res = pyls_format_document (doc , { "insertSpaces" : False })
83
+ res = pylsp_format_document (doc , { "insertSpaces" : False })
84
84
85
85
assert len (res ) == 1
86
86
assert res [0 ]['newText' ] == FOUR_SPACE_DOC .replace (" " , "\t " )
87
87
88
88
89
89
def test_format_with_yapf_specific_option (workspace ):
90
90
doc = Document (DOC_URI , workspace , FOUR_SPACE_DOC )
91
- res = pyls_format_document (doc , { "USE_TABS" : True })
91
+ res = pylsp_format_document (doc , { "USE_TABS" : True })
92
92
93
93
assert len (res ) == 1
94
94
assert res [0 ]['newText' ] == FOUR_SPACE_DOC .replace (" " , "\t " )
You can’t perform that action at this time.
0 commit comments