def METHOD_NAME():
    """
    Attempting to use file flux sensor when not extracting from a file raises an error
    """
    with pytest.raises(
        ValueError,
        match="File flux sensor can only be used when loading from a file.",
    ):
        dag = create_dag(
            dag_id="TEST",
            cdr_type="TEST",
            start_date=datetime.now(),
            extract_sql="DUMMY SQL",
            staging_view_sql="DUMMY STAGING SQL",
            source_table="DUMMY_SOURCE_TABLE",
            use_flux_sensor="file",
        )