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:
@@ -4,6 +4,13 @@ import tempfile
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
import optuna
|
||||
from packaging import version
|
||||
import pytest
|
||||
|
||||
|
||||
if version.parse(optuna.__version__) < version.parse("3.3.0"):
|
||||
pytest.skip("optuna.artiracts module is introduced at v3.3.0", allow_module_level=True)
|
||||
|
||||
from optuna.artifacts import FileSystemArtifactStore
|
||||
from optuna.artifacts import upload_artifact
|
||||
from optuna.storages import BaseStorage
|
||||
@@ -12,7 +19,6 @@ from optuna_dashboard.artifact import _backend
|
||||
from optuna_dashboard.artifact import upload_artifact as dashboard_upload_artifact
|
||||
from optuna_dashboard.artifact._backend_to_store import to_artifact_store
|
||||
from optuna_dashboard.artifact.file_system import FileSystemBackend
|
||||
import pytest
|
||||
|
||||
from ..wsgi_client import send_request
|
||||
|
||||
|
||||
Reference in New Issue
Block a user