@@ -51,7 +51,7 @@ def check_return(result_dict):
51
51
def test_logger ():
52
52
"""Test the logger"""
53
53
string = write_rpc_request (1 , "initialize" , {"rootPath" : str (test_dir )})
54
- errcode , results = run_request (string , " --debug_log" )
54
+ errcode , results = run_request (string , [ " --debug_log"] )
55
55
assert errcode == 0
56
56
assert results [1 ]["type" ] == 3
57
57
assert results [1 ]["message" ] == "FORTLS debugging enabled"
@@ -63,7 +63,7 @@ def test_open():
63
63
string += write_rpc_notification (
64
64
"textDocument/didOpen" , {"textDocument" : {"uri" : file_path }}
65
65
)
66
- errcode , results = run_request (string , fortls_args = " --disable_diagnostics" )
66
+ errcode , results = run_request (string , fortls_args = [ " --disable_diagnostics"] )
67
67
#
68
68
assert errcode == 0
69
69
assert len (results ) == 1
@@ -126,7 +126,7 @@ def test_change():
126
126
string += write_rpc_request (
127
127
3 , "textDocument/documentSymbol" , {"textDocument" : {"uri" : str (file_path )}}
128
128
)
129
- errcode , results = run_request (string , fortls_args = " --disable_diagnostics" )
129
+ errcode , results = run_request (string , fortls_args = [ " --disable_diagnostics"] )
130
130
#
131
131
assert errcode == 0
132
132
assert len (results ) == 3
@@ -551,7 +551,7 @@ def check_return(result_array, checks):
551
551
file_path = test_dir / "hover" / "pointers.f90"
552
552
string += hover_req (file_path , 1 , 26 )
553
553
errcode , results = run_request (
554
- string , fortls_args = " --variable_hover --sort_keywords"
554
+ string , fortls_args = [ " --variable_hover" , " --sort_keywords"]
555
555
)
556
556
assert errcode == 0
557
557
#
@@ -699,7 +699,7 @@ def check_return(results, ref_results):
699
699
"textDocument/didOpen" , {"textDocument" : {"uri" : file_path }}
700
700
)
701
701
file_path = str (test_dir / "diag" / "conf_long_lines.json" )
702
- errcode , res = run_request (string , f" --config { file_path } " )
702
+ errcode , res = run_request (string , [ f" --config { file_path } "] )
703
703
assert errcode == 0
704
704
results .extend (res [1 :])
705
705
0 commit comments