File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,11 +195,11 @@ def test_filepaths():
195195 yield filepaths
196196
197197@pytest .fixture (scope = "function" )
198- def populated_device (device , filepaths ):
198+ def populated_device (device , test_filepaths ):
199199 dirpath = "toplevel/subdir1/subdir2"
200200
201201 device .shell (f"mkdir -p { dirpath } " )
202- for path in filepaths :
202+ for path in test_filepaths :
203203 device .shell (f"echo { path } > /data/local/tmp/{ path } " )
204204
205205 yield device
@@ -234,14 +234,14 @@ def test_pull_dir(populated_device, working_dir):
234234 assert filepath2 .is_file ()
235235 assert filepath2 .read_text () == "toplevel/subdir1/subdir2/test5.txt"
236236
237- def test_pull_recursive_dir (populated_device , working_dir , filepaths ):
237+ def test_pull_recursive_dir (populated_device , working_dir , test_filepaths ):
238238 populated_device .pull (
239239 "data/local/tmp/toplevel" ,
240240 working_dir
241241 )
242242 assert (working_dir / "toplevel" ).is_dir ()
243243 assert (working_dir / "toplevel" / "subdir1" ).is_dir ()
244- for path in filepaths :
244+ for path in test_filepaths :
245245 to_check = working_dir / path
246246 assert to_check .is_file ()
247247 assert to_check .read_text () == path
You can’t perform that action at this time.
0 commit comments