def test_from_data_frame_misconfiguration():
    """Tests that a ``ValueError`` is raised when ``TabularForecastingData`` is constructed without parameters."""
    with pytest.raises(ValueError, match="evaluation or inference requires parameters"):
        TabularForecastingData.from_data_frame(
            "time_idx",
            "target",
            ["series"],
            val_data_frame=MagicMock(),
            additional_kwarg="test",
            batch_size=4,
        )
Tests that a ``ValueError`` is raised when ``TabularForecastingData`` is constructed without parameters.
tests/tabular/forecasting/test_data.py