mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-09 11:28:14 +08:00
Check optuna v3.1.0 to latest
This commit is contained in:
@@ -128,6 +128,10 @@ def test_study_artifact_not_found() -> None:
|
||||
assert status == 404
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
version.parse(optuna.__version__) < version.parse("3.4.0"),
|
||||
reason="upload_artiract needs storage",
|
||||
)
|
||||
def test_successful_study_artifact_retrieval() -> None:
|
||||
storage = optuna.storages.InMemoryStorage()
|
||||
study = optuna.create_study(storage=storage)
|
||||
@@ -263,6 +267,10 @@ def test_upload_artifact() -> None:
|
||||
assert data == "dummy_content"
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
version.parse(optuna.__version__) < version.parse("3.4.0"),
|
||||
reason="upload_artiract needs storage",
|
||||
)
|
||||
def test_delete_study_artifact() -> None:
|
||||
storage = optuna.storages.InMemoryStorage()
|
||||
study = optuna.create_study(storage=storage)
|
||||
|
||||
Reference in New Issue
Block a user