def test_lagged_prediction_data_no_specified_series_lags_pairs_error(self):
        """
        Tests that `create_lagged_prediction_data` throws correct error
        when no lags-series pairs are specified.
        """
        # Define some arbitrary inputs:
        series = linear_timeseries(start=1, length=10, freq=1)
        # Check error thrown by 'moving windows' method and by 'time intersection' method:
        for use_moving_windows in (False, True):
            # Three warnings will be thrown indicating that series
            # is specified without corresponding lags or vice
            # versa - ignore these warnings:
            with warnings.catch_warnings():
                warnings.simplefilter("ignore")
                with pytest.raises(ValueError) as err:
                    create_lagged_prediction_data(
                        target_series=series,
                        lags_future_covariates=[-1],
                        past_covariates=series,
                        uses_static_covariates=False,
                        use_moving_windows=use_moving_windows,
                    )
            assert "Must specify at least one series-lags pair." == str(err.value)

        Tests that `create_lagged_prediction_data` throws correct error
        when no lags-series pairs are specified.
        
darts/tests/utils/tabularization/test_create_lagged_prediction_data.py