mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-11 12:30:25 +08:00
Skip unit test with optuna version
This commit is contained in:
@@ -5,11 +5,16 @@ from typing import Any
|
||||
import optuna
|
||||
from optuna.trial import TrialState
|
||||
from optuna_dashboard._app import create_app
|
||||
from packaging import version
|
||||
import pytest
|
||||
|
||||
from .wsgi_client import send_request
|
||||
|
||||
|
||||
if version.parse(optuna.__version__) < version.parse("3.2.0"):
|
||||
pytest.skip("Study.metrics_name is introduced at v3.2.0", allow_module_level=True)
|
||||
|
||||
|
||||
def _validate_output(
|
||||
storage: optuna.storages.BaseStorage,
|
||||
correct_status: int,
|
||||
|
||||
Reference in New Issue
Block a user