Skip to content

Commit

Permalink
Change extensions to is_extensions in io_utils_test
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-l-kong committed Nov 12, 2020
1 parent c7ad3cf commit 29d73a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ark/utils/io_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ def test_list_files():
os.mkdir(os.path.join(temp_dir, 'badfolder_test'))

# test substrs is None (default)
get_all = iou.list_files(temp_dir, extensions=False)
get_all = iou.list_files(temp_dir, is_extensions=False)
assert sorted(get_all) == sorted(filenames)

# test substrs is not list (single string)
get_txt = iou.list_files(temp_dir, substrs='c', extensions=False)
get_txt = iou.list_files(temp_dir, substrs='c', is_extensions=False)
assert sorted(get_txt) == [filenames[2]]

# test substrs is list
get_test_and_other = iou.list_files(temp_dir, substrs=['c', 'chan'], extensions=False)
get_test_and_other = iou.list_files(temp_dir, substrs=['c', 'chan'], is_extensions=False)
assert sorted(get_test_and_other) == sorted(filenames[1:])


Expand Down

0 comments on commit 29d73a8

Please sign in to comment.