2525
2626def has_wheel_after_build (an_empty_lite_dir , script_runner ):
2727 """run a build, expecting the fixture wheel to be there"""
28- build = script_runner .run ("jupyter" , "lite" , "build" , cwd = str (an_empty_lite_dir ))
28+ build = script_runner .run ([ "jupyter" , "lite" , "build" ] , cwd = str (an_empty_lite_dir ))
2929 assert build .success
3030
31- check = script_runner .run ("jupyter" , "lite" , "check" , cwd = str (an_empty_lite_dir ))
31+ check = script_runner .run ([ "jupyter" , "lite" , "check" ] , cwd = str (an_empty_lite_dir ))
3232 assert check .success
3333
3434 output = an_empty_lite_dir / "_output"
@@ -95,14 +95,14 @@ def test_lite_dir_wheel(an_empty_lite_dir, script_runner):
9595
9696def test_piplite_cli_fail_missing (script_runner , tmp_path , index_cmd ):
9797 path = tmp_path / "missing"
98- build = script_runner .run (* index_cmd , str (path ))
98+ build = script_runner .run ([ * index_cmd , str (path )] )
9999 assert not build .success
100100
101101
102102def test_piplite_cli_empty (script_runner , tmp_path , index_cmd ):
103103 path = tmp_path / "empty"
104104 path .mkdir ()
105- build = script_runner .run (* index_cmd , str (path ))
105+ build = script_runner .run ([ * index_cmd , str (path )] )
106106 assert not build .success
107107
108108
@@ -113,7 +113,7 @@ def test_piplite_cli_win(script_runner, tmp_path, index_cmd, in_cwd):
113113 shutil .copy2 (WHEELS [0 ], path / WHEELS [0 ].name )
114114 kwargs = {"cwd" : str (path )} if in_cwd else {}
115115 pargs = [] if in_cwd else [str (path )]
116- build = script_runner .run (* index_cmd , * pargs , ** kwargs )
116+ build = script_runner .run ([ * index_cmd , * pargs ] , ** kwargs )
117117 assert build .success
118118 assert json .loads ((path / "all.json" ).read_text (encoding = "utf-8" ))
119119
@@ -127,12 +127,12 @@ def test_validate_config(script_runner, a_lite_config_file):
127127 lite_dir = a_lite_config_file .parent
128128 output = lite_dir / "_output"
129129
130- build = script_runner .run ("jupyter" , "lite" , "build" , cwd = str (lite_dir ))
130+ build = script_runner .run ([ "jupyter" , "lite" , "build" ] , cwd = str (lite_dir ))
131131 assert build .success
132132 shutil .copy2 (output / a_lite_config_file .name , a_lite_config_file )
133133 first_config_data = a_lite_config_file .read_text (** UTF8 )
134134
135- check = script_runner .run ("jupyter" , "lite" , "check" , cwd = str (lite_dir ))
135+ check = script_runner .run ([ "jupyter" , "lite" , "check" ] , cwd = str (lite_dir ))
136136 assert check .success
137137 second_config_data = a_lite_config_file .read_text (** UTF8 )
138138 assert first_config_data == second_config_data
@@ -147,10 +147,10 @@ def test_validate_config(script_runner, a_lite_config_file):
147147
148148 third_config_data = json .dumps (whole_file , ** JSON_FMT )
149149 a_lite_config_file .write_text (third_config_data , ** UTF8 )
150- rebuild = script_runner .run ("jupyter" , "lite" , "build" , cwd = str (lite_dir ))
150+ rebuild = script_runner .run ([ "jupyter" , "lite" , "build" ] , cwd = str (lite_dir ))
151151 assert rebuild .success
152152
153- recheck = script_runner .run ("jupyter" , "lite" , "check" , cwd = str (lite_dir ))
153+ recheck = script_runner .run ([ "jupyter" , "lite" , "check" ] , cwd = str (lite_dir ))
154154 assert not recheck .success , third_config_data
155155
156156 fourth_config_data = a_lite_config_file .read_text (** UTF8 )
0 commit comments