def test_window_equal_one(self, model, series):
        """Check that model, created with window=1 generate the same score regardless of window_agg value."""
        ts_train, ts_test = series
        model_cls, model_kwargs = model

        scorer_T = model_cls(window=1, window_agg=True, **model_kwargs)
        scorer_F = model_cls(window=1, window_agg=False, **model_kwargs)

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

        auc_roc_T = scorer_T.eval_metric(anomalies=self.anomalies, series=ts_test)
        auc_roc_F = scorer_F.eval_metric(anomalies=self.anomalies, series=ts_test)

        assert auc_roc_T == auc_roc_F
Check that model, created with window=1 generate the same score regardless of window_agg value.
darts/tests/ad/test_scorers.py