Skip to content

Commit

Permalink
Tests - assert single values in tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin committed Nov 14, 2024
1 parent 3d00c00 commit c9c89ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test_manager/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c9c89ff

Please sign in to comment.