Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 78b725d

Browse files
committed
Tests: Fix test_api so it doesn't fail when algorithm is joindiff
1 parent 0f2f1d4 commit 78b725d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ def test_api_get_stats_dict(self):
6767
"updated": 0,
6868
"unchanged": 4,
6969
"total": 1,
70-
"stats": {"rows_downloaded": 5},
70+
# "stats": {"rows_downloaded": 5},
7171
}
7272
t1 = connect_to_table(TEST_MYSQL_CONN_STRING, self.table_src_name)
7373
t2 = connect_to_table(TEST_MYSQL_CONN_STRING, self.table_dst_name)
7474
diff = diff_tables(t1, t2)
75-
output = diff.get_stats_dict()
7675

76+
output = diff.get_stats_dict()
77+
output.pop('stats')
7778
self.assertEqual(expected_dict, output)
7879
self.assertIsNotNone(diff)
7980
assert len(list(diff)) == 1

0 commit comments

Comments
 (0)