Skip to content

Commit

Permalink
Skip retrieval_with_hpo notebook test when optuna is not installed (#897
Browse files Browse the repository at this point in the history
)

* Skip retrieval_with_hpo notebook test when optuna is not installed

* use importorskip instead
  • Loading branch information
edknv committed Nov 21, 2022
1 parent d10938a commit dc69d42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/tf/examples/test_usecase_retrieval_with_hpo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import pytest
from testbook import testbook

from tests.conftest import REPO_ROOT

optuna = pytest.importorskip("optuna")


@testbook(
REPO_ROOT / "examples/usecases/retrieval-with-hyperparameter-optimization.ipynb", execute=False
Expand Down

0 comments on commit dc69d42

Please sign in to comment.