if should_pass:
        models.DAG("test-dag", tags=tags)
    else:
        with pytest.raises(AirflowException):
            models.DAG("test-dag", tags=tags)
@pytest.mark.need_serialized_dag
def test_get_dataset_triggered_next_run_info(dag_maker, clear_datasets):
    dataset1 = Dataset(uri="ds1")
    dataset2 = Dataset(uri="ds2")
    dataset3 = Dataset(uri="ds3")
    with dag_maker(dag_id="datasets-1", schedule=[dataset2]):
        pass
    dag1 = dag_maker.dag
    with dag_maker(dag_id="datasets-2", schedule=[dataset1, dataset2]):
        pass
    dag2 = dag_maker.dag
    with dag_maker(dag_id="datasets-3", schedule=[dataset1, dataset2, dataset3]):
        pass
    dag3 = dag_maker.dag