/
/
/
1"""Shared fixtures for the cache controller tests."""
2
3from __future__ import annotations
4
5from typing import TYPE_CHECKING
6
7import pytest
8
9if TYPE_CHECKING:
10 from music_assistant.controllers.cache import CacheController
11 from music_assistant.mass import MusicAssistant
12
13
14@pytest.fixture
15async def cache_controller(mass_minimal: MusicAssistant) -> CacheController:
16 """Return an initialized cache controller."""
17 await mass_minimal.cache._setup_database()
18 return mass_minimal.cache
19