Skip to content

Commit f0c87ec

Browse files
author
Marvin Schenkel
committed
test: add unit test for a failed ActivityResult
1 parent 92aa6d4 commit f0c87ec

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
@@ -379,6 +379,21 @@
379379
"value1",
380380
id="activity_reference_with_nested_property_and_string_reference",
381381
),
382+
p(
383+
"@activity('Error activity').Error.message",
384+
PipelineRunState(
385+
activity_results=[
386+
ActivityResult(
387+
activity_name="Error activity",
388+
status=DependencyCondition.FAILED,
389+
error={"message": "Oh no, something went wrong"},
390+
)
391+
],
392+
),
393+
"@activity('Error activity').Error.message",
394+
"Oh no, something went wrong",
395+
id="activity_reference_with_error_message",
396+
),
382397
],
383398
)
384399
def test_evaluate(

0 commit comments

Comments
 (0)