Skip to content
Snippets Groups Projects
Commit 6ae5e14c authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

make click output tests more relaxed

parent 1abf63a2
No related branches found
No related tags found
1 merge request!143Remove C++ code support
......@@ -192,6 +192,9 @@ def _assert_config_dump(ref, ref_date):
with open("TEST_CONF", "r") as f, open(ref, "r") as f2:
text = f.read().replace("'''", '"""')
ref_text = f2.read().replace(ref_date, today)
# remove the starting whitespace of each line so the tests are more relaxed
text = "\n".join(line.lstrip() for line in text.splitlines())
ref_text = "\n".join(line.lstrip() for line in ref_text.splitlines())
assert text == ref_text, "\n".join(
[text, "########################\n" * 2, ref_text]
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment