Use a function instead of weird new class
@@ -332,16 +332,11 @@ class TestParametricUnivariateFitters:
f.print_summary(style="latex")
-class ExponentialBaseMixtureCureFitter(MixtureCureFitter):
- def __init__(self):
- super().__init__(base_fitter=ExponentialFitter())
-
-
class TestUnivariateFitters:
@pytest.fixture
def univariate_fitters(self):
return [
- ExponentialBaseMixtureCureFitter,
+ lambda *args, **kwargs: MixtureCureFitter(base_fitter=ExponentialFitter(), *args, **kwargs),
KaplanMeierFitter,
NelsonAalenFitter,
BreslowFlemingHarringtonFitter,
