def test_FittableAggregator_predict_wrong_inputs(self, config):
        """Check that exception specific to FittableAggregator are properly raised"""
        aggregator_cls, cls_kwargs, _ = config
        aggregator = aggregator_cls(**cls_kwargs)

        aggregator.fit(self.real_anomalies, self.mts_anomalies1)

        # series must be same width as series used for training
        with pytest.raises(ValueError):
            aggregator.predict(self.mts_anomalies3)
        with pytest.raises(ValueError):
            aggregator.predict([self.mts_anomalies3])
        with pytest.raises(ValueError):
            aggregator.predict([self.mts_anomalies1, self.mts_anomalies3])
Check that exception specific to FittableAggregator are properly raised
darts/tests/ad/test_aggregators.py