From f9fcbc26c5588f62f5c674d9d424197b9c8b1fc4 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 25 Jan 2023 02:46:53 +0300 Subject: mechanical-rob: corrs: Activate tests. Print out whitespace * Activate the correlation correctness tests * Print out whitespace characters in such a form that allows visual comparison of differences to help with fixing issues caught by tests. --- test/requests/correlation_tests.py | 4 ++-- test/requests/test-website.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/requests/correlation_tests.py b/test/requests/correlation_tests.py index 40e5242a..5c5ad6f7 100644 --- a/test/requests/correlation_tests.py +++ b/test/requests/correlation_tests.py @@ -172,9 +172,9 @@ def collect_failures(actual, expected, keys): continue __eq = __eq + (( f"Trait '{trait_id}': " - f"Different '{title}' values: expected:\n\t\t'{exp_val}'" + f"Different '{title}' values: expected:\n\t\t'{repr(exp_val)}'" "\n\nbut got\n" - f"\n\t\t'{act_val}'"),) + f"\n\t\t'{repr(act_val)}'"),) continue return __eq diff --git a/test/requests/test-website.py b/test/requests/test-website.py index 35a69c6c..7eb1678f 100755 --- a/test/requests/test-website.py +++ b/test/requests/test-website.py @@ -43,7 +43,7 @@ def run_all(args_obj, parser): check_packaged_js_files(args_obj, parser) check_mapping(args_obj, parser) check_correlations(args_obj, parser) - # check_correlations_correctness(args_obj, parser) # activate once all correlations are verified + check_correlations_correctness(args_obj, parser) # activate once all correlations are verified # TODO: Add other functions as they are created. -- cgit v1.2.3