def test_boxcox_multiple_calls_to_fit(self):
        """
        This test checks whether calling the scaler twice is calculating new lambdas instead of
        keeping the old ones
        """
        box_cox = BoxCox()

        box_cox.fit(self.sine_series)
        lambda1 = deepcopy(box_cox._fitted_params)[0].tolist()

        box_cox.fit(self.lin_series)
        lambda2 = deepcopy(box_cox._fitted_params)[0].tolist()

        assert lambda1 != lambda2, (
            "Lambdas should change when the transformer is retrained"
        )

        This test checks whether calling the scaler twice is calculating new lambdas instead of
        keeping the old ones
        
darts/tests/dataprocessing/transformers/test_boxcox.py