kaxil commented on code in PR #53000:
URL: https://github.com/apache/airflow/pull/53000#discussion_r2217404675
##########
airflow-core/tests/unit/utils/test_state.py:
##########
@@ -81,6 +81,23 @@ def test_dagrun_state_enum_escape():
class TestTaskInstanceStates:
"""Test suite for validating task instance state relationships."""
+ def test_failed_and_success_states_union_equals_terminal_states(self):
+ """Test that union of failed_states and success_states equals
TerminalTIState values."""
+ # Get all terminal state values
+ terminal_state_values = {state.value for state in TerminalTIState}
+
+ # Get union of failed and success states (convert to string values)
+ failed_success_union = {
+ state.value for state in
State.failed_states.union(State.success_states)
+ }.union(
+ {"removed"}
+ ) # Treat removed separately since it doesn't neatly fit into the
"success" or "failure" category semantically.ßß
Review Comment:
```suggestion
) # Treat removed separately since it doesn't neatly fit into the
"success" or "failure" category semantically.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]