Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
przadka committed Apr 28, 2023
1 parent 46e0d17 commit a800f7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/scan/test_scan_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ def test_simple_folder(self, tmp_path):

folder = LocalFolder(str(d))
local_paths = folder.all_files(reporter=MagicMock())
absolute_paths = [fix_windows_path_limit(path.absolute_path) for path in list(local_paths)]
absolute_paths = [Path(fix_windows_path_limit(path.absolute_path)) for path in list(local_paths)]

assert len(absolute_paths) == 3
assert absolute_paths == [
fix_windows_path_limit(str(d / "file1.txt")),
fix_windows_path_limit(str(d / "file2.txt")),
fix_windows_path_limit(str(d / "file3.txt"))
Path(fix_windows_path_limit(d / "file1.txt")),
Path(fix_windows_path_limit(d / "file2.txt")),
Path(fix_windows_path_limit(d / "file3.txt"))
]

def test_folder_with_subfolders(self, tmp_path):
Expand Down

0 comments on commit a800f7d

Please sign in to comment.