def METHOD_NAME(tmp_path):
    """
    Test that parse_workflows_yaml raises a ValueError if the input file
    doesn't have a 'workflows' key.
    """
    (tmp_path / "dummy_input.yml").write_text(
        dedent(
            """\
            available_dates_sensor:
              schedule: "0 0 * * *"
              workflows:
                - workflow_name: workflow1
            """
        )
    )
    with pytest.raises(
        ValueError, match="Input file does not have a 'workflows' section."
    ):
        workflow_storage, sensor_config = parse_workflows_yaml(
            filename="dummy_input.yml",
            inputs_dir=str(tmp_path),
            workflow_storage_dir=str(tmp_path / ".prefect/flows"),
        )