def test_not_complete_monthly_to_quarterly(self):
        """
        Check that an univariate monthly series not aligned with quarters is transformed into a quarterly series
        in the expected way.
        """
        # monthly series with missing values
        midas = MIDAS(low_freq="QS", strip=False)
        quarterly_not_complete_ts_midas = midas.fit_transform(
            self.monthly_not_complete_ts
        )
        assert quarterly_not_complete_ts_midas == self.quarterly_not_complete_ts

        inversed_quarterly_not_complete_ts_midas = midas.inverse_transform(
            quarterly_not_complete_ts_midas
        )
        assert self.monthly_not_complete_ts == inversed_quarterly_not_complete_ts_midas

        # when strip=True we only get 1 one quarter with all 3 months
        midas = MIDAS(low_freq="QS", strip=True)
        quarterly_not_complete_ts_midas = midas.fit_transform(
            self.monthly_not_complete_ts
        )
        assert quarterly_not_complete_ts_midas == self.quarterly_not_complete_ts[1:2]

        inversed_quarterly_not_complete_ts_midas = midas.inverse_transform(
            quarterly_not_complete_ts_midas
        )
        assert (
            self.monthly_not_complete_ts[1:4]
            == inversed_quarterly_not_complete_ts_midas
        )

        Check that an univariate monthly series not aligned with quarters is transformed into a quarterly series
        in the expected way.
        
darts/tests/dataprocessing/transformers/test_midas.py