with dag_maker():
        @task
        def the_task():
            print("Hi")
        the_task()
    dr: DagRun = dag_maker.create_dagrun()
    dr.note = "dag run with note"
    session.add(dr)
    session.commit()
    dr_note = session.query(DagRunNote).filter(DagRunNote.dag_run_id == dr.id).one()
    assert dr_note.content == "dag run with note"
    session.delete(dr)
    session.commit()
    assert session.query(DagRun).filter(DagRun.id == dr.id).one_or_none() is None
    assert session.query(DagRunNote).filter(DagRunNote.dag_run_id == dr.id).one_or_none() is None