diff --git a/newsfragments/44475.significant.rst b/newsfragments/44475.significant.rst new file mode 100644 index 0000000000000..691af8730bf53 --- /dev/null +++ b/newsfragments/44475.significant.rst @@ -0,0 +1,21 @@ +Remove ``TriggerRule.NONE_FAILED_OR_SKIPPED`` + +.. Provide additional contextual information + +.. Check the type of change that applies to this change + +* Types of change + + * [x] DAG changes + * [ ] Config changes + * [ ] API changes + * [ ] CLI changes + * [ ] Behaviour changes + * [ ] Plugin changes + * [ ] Dependency change + +.. List the migration rules needed for this change (see https://github.com/apache/airflow/issues/41641) + +* Migrations rules needed + + * Remove attribute ``TriggerRule.NONE_FAILED_OR_SKIPPED`` diff --git a/tests/utils/test_trigger_rule.py b/tests/utils/test_trigger_rule.py index 589eec15d2f6b..727dc40d8ab73 100644 --- a/tests/utils/test_trigger_rule.py +++ b/tests/utils/test_trigger_rule.py @@ -36,7 +36,7 @@ def test_valid_trigger_rules(self): assert TriggerRule.is_valid(TriggerRule.ALWAYS) assert TriggerRule.is_valid(TriggerRule.NONE_FAILED_MIN_ONE_SUCCESS) assert TriggerRule.is_valid(TriggerRule.ALL_DONE_SETUP_SUCCESS) - assert len(TriggerRule.all_triggers()) == 13 + assert len(TriggerRule.all_triggers()) == 12 with pytest.raises(ValueError): TriggerRule("NOT_EXIST_TRIGGER_RULE")