1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
import pytest
from mopidy.core import Core
from tests import dummy_audio, dummy_backend, dummy_mixer
@pytest.fixture
def config():
return {
"core": {"max_tracklist_length": 10000},
}
@pytest.fixture
def audio():
actor = dummy_audio.create_proxy()
yield actor
actor.stop()
@pytest.fixture
def backend(audio):
actor = dummy_backend.create_proxy(audio=audio)
yield actor
actor.stop()
@pytest.fixture
def mixer():
actor = dummy_mixer.create_proxy()
yield actor
actor.stop()
@pytest.fixture
def core(config, backend, mixer, audio):
actor = Core.start(
config=config, backends=[backend], mixer=mixer, audio=audio
).proxy()
yield actor
actor.stop()
|