Skip to content

Commit ba61ff2

Browse files
Marvin Schenkelarjendev
authored andcommitted
test: add unit test for a failed ActivityResult
1 parent cc1f2ea commit ba61ff2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/unit/functions/test_data_factory_testing_framework_expression_evaluator.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,21 @@
390390
"value1",
391391
id="activity_reference_with_nested_property_and_string_reference",
392392
),
393+
p(
394+
"@activity('Error activity').Error.message",
395+
PipelineRunState(
396+
activity_results=[
397+
ActivityResult(
398+
activity_name="Error activity",
399+
status=DependencyCondition.FAILED,
400+
error={"message": "Oh no, something went wrong"},
401+
)
402+
],
403+
),
404+
"@activity('Error activity').Error.message",
405+
"Oh no, something went wrong",
406+
id="activity_reference_with_error_message",
407+
),
393408
],
394409
)
395410
def test_evaluate(

0 commit comments

Comments
 (0)