Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion airbyte_cdk/test/models/outcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ def from_status_str(cls, status: str | None) -> ExpectedOutcome:
return {
"succeed": ExpectedOutcome.EXPECT_SUCCESS,
"failed": ExpectedOutcome.EXPECT_EXCEPTION,
"exception": ExpectedOutcome.EXPECT_EXCEPTION, # same as 'failed'
}[status]
except KeyError as ex:
raise ValueError(f"Invalid status '{status}'. Expected 'succeed' or 'failed'.") from ex
raise ValueError(
f"Invalid status '{status}'. Expected 'succeed', 'failed', or 'exception'.",
) from ex

@classmethod
def from_expecting_exception_bool(cls, expecting_exception: bool | None) -> ExpectedOutcome:
Expand Down
Loading