Skip to content

Commit c6f8eb4

Browse files
adapt test
Signed-off-by: Themis Valtinos <73662635+themisvaltinos@users.noreply.github.com>
1 parent cc82ab0 commit c6f8eb4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/core/test_snapshot_evaluator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,12 +570,12 @@ def test_cleanup_fails(adapter_mock, make_snapshot):
570570
snapshot.version = "test_version"
571571

572572
evaluator.promote([snapshot], EnvironmentNamingInfo(name="test_env"))
573-
with pytest.raises(NodeExecutionFailedError) as exc_info:
573+
with pytest.raises(SQLMeshError) as exc_info:
574574
evaluator.cleanup(
575575
[SnapshotTableCleanupTask(snapshot=snapshot.table_info, dev_table_only=True)]
576576
)
577577

578-
assert str(exc_info.value.__cause__) == "test_error"
578+
assert "test_error" in str(exc_info.value)
579579

580580

581581
def test_cleanup_skip_missing_table(adapter_mock, make_snapshot):

0 commit comments

Comments
 (0)