def test_NonFittableAggregator_predict(self, config):
        """Check that predict() works as intended"""
        aggregator_cls, cls_kwargs, _ = config
        aggregator = aggregator_cls(**cls_kwargs)

        # name must be of type str
        assert isinstance(aggregator.__str__(), str)

        assert not isinstance(aggregator, FittableAggregator)

        # Check that predict can be called when series is appropriate
        pred = aggregator.predict(self.mts_anomalies1)

        # Check that the aggregated result has only one component
        assert pred.width == 1
Check that predict() works as intended
darts/tests/ad/test_aggregators.py