Skip to content

Commit

Permalink
tests/unit/test_dir_list.py Test dir_list(cap, path_list)
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Kaindl <[email protected]>
  • Loading branch information
bernhardkaindl committed Dec 11, 2023
1 parent 7072e89 commit bdf7219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_dir_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def test_dir_list(bugtool):
bugtool.dir_list(cap=cap, path_list=[__file__ + "*notexist*"])
assert bugtool.data == {}

# Assert that matching cap and file pattern causes an entry by glob of path_list to be added:
bugtool.dir_list(cap=cap, path_list=path_list) # matching cap and path_list
# Assert matching cap and path_list produces expected_data
bugtool.dir_list(cap=cap, path_list=path_list)

# This assert shows that dir_list() needs an update for Python3:
if sys.version_info.major > 2:
Expand Down

0 comments on commit bdf7219

Please sign in to comment.