-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH]
sktime
API compliance test to loop through tests individually
Closes #47
- Loading branch information
Showing
7 changed files
with
82 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
"""Test the sktime contract for Prophet and HierarchicalProphet.""" | ||
|
||
import pytest | ||
from sktime.utils.estimator_checks import check_estimator | ||
import gc # noqa: F401 | ||
|
||
import pytest # noqa: F401 | ||
from sktime.utils.estimator_checks import check_estimator, parametrize_with_checks | ||
|
||
from prophetverse.sktime import HierarchicalProphet, Prophetverse | ||
|
||
PROPHET_MODELS = [ | ||
Prophetverse, | ||
HierarchicalProphet, | ||
] | ||
PROPHET_MODELS = [Prophetverse, HierarchicalProphet] | ||
|
||
|
||
@pytest.mark.skip(reason="Temporarily disabled") | ||
@pytest.mark.parametrize("model", PROPHET_MODELS) | ||
def test_check_estimator(model): | ||
@parametrize_with_checks(PROPHET_MODELS) | ||
def test_sktime_api_compliance(obj, test_name): | ||
"""Test the sktime contract for Prophet and HierarchicalProphet.""" | ||
|
||
check_estimator(model, raise_exceptions=True) | ||
check_estimator(obj, tests_to_run=test_name, raise_exceptions=True) |