From 0a66c591e477c573af43f1f28916842f9610cd17 Mon Sep 17 00:00:00 2001 From: NicolasGensollen Date: Tue, 16 May 2023 09:44:06 +0200 Subject: [PATCH] small modifs --- test/nonregression/testing_tools.py | 2 +- test/unittests/test_testing_tools.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/nonregression/testing_tools.py b/test/nonregression/testing_tools.py index b25ae38ab..553cd1906 100644 --- a/test/nonregression/testing_tools.py +++ b/test/nonregression/testing_tools.py @@ -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 diff --git a/test/unittests/test_testing_tools.py b/test/unittests/test_testing_tools.py index 8d208a865..f83f6348b 100644 --- a/test/unittests/test_testing_tools.py +++ b/test/unittests/test_testing_tools.py @@ -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): @@ -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