From 1497505b4e4980fc8298f740fcd86d6c1981b303 Mon Sep 17 00:00:00 2001 From: keisuke-umezawa Date: Wed, 24 Jan 2024 22:11:20 +0900 Subject: [PATCH] Check optuna v3.1.0 to latest --- python_tests/artifact/test_backend.py | 8 ++++++++ python_tests/test_csv_download.py | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python_tests/artifact/test_backend.py b/python_tests/artifact/test_backend.py index c9caec1d..56fdf6f5 100644 --- a/python_tests/artifact/test_backend.py +++ b/python_tests/artifact/test_backend.py @@ -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) diff --git a/python_tests/test_csv_download.py b/python_tests/test_csv_download.py index dc2d3ee6..6a9e57cd 100644 --- a/python_tests/test_csv_download.py +++ b/python_tests/test_csv_download.py @@ -11,8 +11,8 @@ 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) +if version.parse(optuna.__version__) < version.parse("3.4.0"): + pytest.skip("Study.metrics_name is introduced at v3.4.0", allow_module_level=True) def _validate_output(