Skip to content

Commit a2f6944

Browse files
haritamarclaude
andcommitted
Fix volume threshold assertions: dbt reports 'fail' not 'error'
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bba307d commit a2f6944

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

integration_tests/tests/test_volume_threshold.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_large_spike_fails(test_id: str, dbt_project: DbtProject):
5454
data.append({TIMESTAMP_COLUMN: yesterday.strftime(DATE_FORMAT)})
5555

5656
test_result = dbt_project.test(test_id, DBT_TEST_NAME, DBT_TEST_ARGS, data=data)
57-
assert test_result["status"] == "error"
57+
assert test_result["status"] == "fail"
5858

5959

6060
def test_large_drop_fails(test_id: str, dbt_project: DbtProject):
@@ -75,7 +75,7 @@ def test_large_drop_fails(test_id: str, dbt_project: DbtProject):
7575
data.append({TIMESTAMP_COLUMN: yesterday.strftime(DATE_FORMAT)})
7676

7777
test_result = dbt_project.test(test_id, DBT_TEST_NAME, DBT_TEST_ARGS, data=data)
78-
assert test_result["status"] == "error"
78+
assert test_result["status"] == "fail"
7979

8080

8181
def test_direction_spike_ignores_drop(test_id: str, dbt_project: DbtProject):
@@ -208,7 +208,7 @@ def test_where_expression(test_id: str, dbt_project: DbtProject):
208208

209209
# Without filter: total yesterday = 300 vs 100 two days ago -> big spike -> error
210210
test_result = dbt_project.test(test_id, DBT_TEST_NAME, DBT_TEST_ARGS, data=data)
211-
assert test_result["status"] == "error"
211+
assert test_result["status"] == "fail"
212212

213213
# With filter on category A: 100 yesterday vs 100 two days ago -> stable -> pass
214214
test_args_filtered = {

0 commit comments

Comments
 (0)