mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-12 12:40:33 +08:00
Clear cache for other tests as well
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user