def test_window_greater_than_one(self, window, model, series):
        """Check scorer with same window greater than 1 and different values of window_agg produce correct scores"""
        ts_train, ts_test = series
        model_cls, model_kwargs = model
        scorer_T = model_cls(window=window, window_agg=True, **model_kwargs)
        scorer_F = model_cls(window=window, window_agg=False, **model_kwargs)

        scorer_T.fit(ts_train)
        scorer_F.fit(ts_train)

        score_T = scorer_T.score(ts_test)
        score_F = scorer_F.score(ts_test)

        # same length
        assert len(score_T) == len(score_F)

        # same width
        assert score_T.width == score_F.width

        # same first time index
        assert score_T.time_index[0] == score_F.time_index[0]

        # same last time index
        assert score_T.time_index[-1] == score_F.time_index[-1]

        # same last value (by definition)
        assert score_T[-1] == score_F[-1]
Check scorer with same window greater than 1 and different values of window_agg produce correct scores
darts/tests/ad/test_scorers.py