assert get_ti_from_db(task_2).state == State.SUCCESS
    
    assert get_ti_from_db(task_3).state == State.SUCCESS
    
    assert get_ti_from_db(task_4).state == State.SUCCESS
    
    assert get_ti_from_db(task_5).state == State.NONE
    assert get_ti_from_db(task_6).state == State.NONE
    
    assert get_ti_from_db(task_7).state == State.SKIPPED
    dagrun.refresh_from_db(session=session)
    
    assert dagrun.get_state() == State.QUEUED
    assert {t.key for t in altered} == {
        ("test_set_task_group_state", "section_1.task_1", dagrun.run_id, 1, -1),
        ("test_set_task_group_state", "section_1.task_3", dagrun.run_id, 1, -1),
    }
def test_dag_teardowns_property_lists_all_teardown_tasks(dag_maker):
    @setup
    def setup_task():
        return 1
    @teardown
    def teardown_task():
        return 1
    @teardown
    def teardown_task2():
        return 1
    @teardown
    def teardown_task3():