diff --git a/airflow/utils/trigger_rule.py b/airflow/utils/trigger_rule.py index 6ec37cba81870..ebd773fa932af 100644 --- a/airflow/utils/trigger_rule.py +++ b/airflow/utils/trigger_rule.py @@ -33,7 +33,6 @@ class TriggerRule(str, Enum): NONE_FAILED = "none_failed" NONE_FAILED_OR_SKIPPED = "none_failed_or_skipped" NONE_SKIPPED = "none_skipped" - DUMMY = "dummy" ALWAYS = "always" NONE_FAILED_MIN_ONE_SUCCESS = "none_failed_min_one_success" ALL_SKIPPED = "all_skipped" diff --git a/tests/utils/test_trigger_rule.py b/tests/utils/test_trigger_rule.py index f1e4c5990c939..44eea6a8f7d47 100644 --- a/tests/utils/test_trigger_rule.py +++ b/tests/utils/test_trigger_rule.py @@ -34,11 +34,10 @@ def test_valid_trigger_rules(self): assert TriggerRule.is_valid(TriggerRule.NONE_FAILED) assert TriggerRule.is_valid(TriggerRule.NONE_FAILED_OR_SKIPPED) assert TriggerRule.is_valid(TriggerRule.NONE_SKIPPED) - assert TriggerRule.is_valid(TriggerRule.DUMMY) 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()) == 14 + assert len(TriggerRule.all_triggers()) == 13 with pytest.raises(ValueError): TriggerRule("NOT_EXIST_TRIGGER_RULE")