Skip to content

Commit

Permalink
fix unit tests for python 3.6 and sklearn latest (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmartinonQM committed Jun 4, 2021
1 parent 8b3715b commit a06bc1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion skltemplate/_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TemplateEstimator(BaseEstimator):
>>> y = np.zeros((100, ))
>>> estimator = TemplateEstimator()
>>> estimator.fit(X, y)
TemplateEstimator(demo_param='demo_param')
TemplateEstimator()
"""
def __init__(self, demo_param='demo_param'):
self.demo_param = demo_param
Expand Down
7 changes: 4 additions & 3 deletions skltemplate/tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@


@pytest.mark.parametrize(
"Estimator", [TemplateEstimator, TemplateTransformer, TemplateClassifier]
"estimator",
[TemplateEstimator(), TemplateTransformer(), TemplateClassifier()]
)
def test_all_estimators(Estimator):
return check_estimator(Estimator)
def test_all_estimators(estimator):
return check_estimator(estimator)

0 comments on commit a06bc1a

Please sign in to comment.