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

Commit 6c81637

Browse files
committed
update test to reflect new output
1 parent 19657fa commit 6c81637

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/test_dbt.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,13 @@ def test_integration_basic_dbt(self):
335335

336336
# assertions for the diff that exists in tests/dbt_artifacts/jaffle_shop.duckdb
337337
if test_project_path == artifacts_path:
338-
assert diff[0].decode("utf-8") == "Found 5 successful model runs from the last dbt command."
339-
assert diff[8].decode("utf-8") == "Column(s) added: ['amount_cents']"
338+
diff_string = b''.join(diff).decode('utf-8')
339+
# 5 diffs were ran
340+
assert diff_string.count('<>') == 5
341+
# 4 with no diffs
342+
assert diff_string.count('No row differences')
343+
# 1 with a diff
344+
assert diff_string.count('| Rows Added | Rows Removed')
340345

341346

342347
def test_integration_cloud_dbt(self):

0 commit comments

Comments
 (0)