Skip to content

Commit f0d343a

Browse files
authored
[py] Update test_remote_webdriver.py to use file_names
files does not get returned in a consistent order from get_downloadable_files() which is why the sort is needed in the assert. Use file_names instead
1 parent 50f3836 commit f0d343a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/python/tests/drivers/test_remote_webdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_downloads(server, temp_dir):
4747
files = driver.get_downloadable_files()
4848

4949
assert sorted(files) == sorted(file_names)
50-
downloadable_file = files[0]
50+
downloadable_file = file_names[0]
5151
target_directory = temp_dir
5252

5353
driver.download_file(downloadable_file, target_directory)

0 commit comments

Comments
 (0)