From c9c89ffc207f663fe0abb58e471debd4bd3655c5 Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 14 Nov 2024 11:16:30 +0100 Subject: [PATCH] Tests - assert single values in tables --- test_manager/utils_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test_manager/utils_test.py b/test_manager/utils_test.py index 5a5639a0..2f6e8035 100644 --- a/test_manager/utils_test.py +++ b/test_manager/utils_test.py @@ -27,7 +27,9 @@ def compare_tables(tables_res, tables_exp): assert table_res['columns'] == tables_exp[idx]['columns'] assert len(table_res['rows']) == len(tables_exp[idx]['rows']) for row_idx, row_res in enumerate(table_res['rows']): - assert row_res == tables_exp[idx]['rows'][row_idx] + row_res_str = [str(x)[:10] for x in row_res] + row_exp_str = [str(x)[:10] for x in tables_exp[idx]['rows'][row_idx]] + assert row_res_str == row_exp_str def compare_reader_result(src_path, res_path, file):