Skip to content

Commit

Permalink
small modifs
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGensollen committed May 26, 2023
1 parent c1eb688 commit 0a66c59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/nonregression/testing_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def _format_line_differences(lines: list) -> str:
msg = ""
for line in lines:
left, right = line
msg += f"\t\t- {_format_tree_line(left)} != {_format_tree_line(right)}\n"
msg += f"\t- {_format_tree_line(left)} != {_format_tree_line(right)}\n"

return msg

Expand Down
10 changes: 5 additions & 5 deletions test/unittests/test_testing_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def test_compare_folders_empty_nested(tmp_path):
dir2 = tmp_path / "folder2" / "subfolder2"
dir2.mkdir(parents=True)

assert compare_folders(dir1, dir2, tmp_path)
assert compare_folders(tmp_path / "folder1", tmp_path / "folder2", tmp_path)


def test_compare_folders(tmp_path):
Expand Down Expand Up @@ -298,10 +298,10 @@ def test_compare_folders_multiple_mismatches(tmp_path):
E + file2.xt
E
E There are 4 lines with a mismatch :
E - subfolder2 != subfolder3
E - file2.xt != file4.xt
E - subfolder3 != subfolder4
E - file3.xt != file2.xt
E - subfolder2 != subfolder3
E - file2.xt != file4.xt
E - subfolder3 != subfolder4
E - file3.xt != file2.xt
"""
from test.nonregression.testing_tools import compare_folders

Expand Down

0 comments on commit 0a66c59

Please sign in to comment.