Clear cache for other tests as well

This commit is contained in:
nabenabe0928
2023-12-07 08:55:15 +01:00
parent a5e2be25b5
commit aa0fccc65e
4 changed files with 14 additions and 9 deletions
@@ -9,6 +9,7 @@ from playwright.sync_api import Page
import pytest
from ...test_server import make_test_server
from ...utils import clear_inmemory_cache
def make_test_storage() -> optuna.storages.InMemoryStorage:
@@ -43,6 +44,7 @@ def make_test_storage() -> optuna.storages.InMemoryStorage:
@pytest.fixture
def storage() -> optuna.storages.InMemoryStorage:
clear_inmemory_cache()
storage = make_test_storage()
return storage