Skip to content

Commit 995926d

Browse files
committed
Chore: fix table diff uni
t test
1 parent 405896c commit 995926d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/core/test_table_diff.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_data_diff(sushi_context):
1919
diff = sushi_context.table_diff(
2020
source="prod",
2121
target="dev",
22-
on=exp.condition("s.customer_id = t.customer_id"),
22+
on=exp.condition("s.customer_id = t.customer_id AND s.ds = t.ds"),
2323
model_or_snapshot="sushi.customer_revenue_by_day",
2424
)
2525

@@ -28,6 +28,6 @@ def test_data_diff(sushi_context):
2828
assert schema_diff.removed == []
2929

3030
row_diff = diff.row_diff()
31-
assert row_diff.source_count == 2163
32-
assert row_diff.target_count == 2586
31+
assert row_diff.source_count == 123
32+
assert row_diff.target_count == 1685
3333
assert row_diff.sample.shape == (20, 7)

0 commit comments

Comments
 (0)