mopidy-jellyfin/tests/test_backend.py
Marvin Steadfast 663936393e testing backend
2016-12-15 13:30:22 +01:00

18 lines
514 B
Python

from __future__ import unicode_literals
import mock
from mopidy_emby import library, playback
from mopidy_emby.backend import EmbyBackend
@mock.patch('mopidy_emby.backend.EmbyHandler', autospec=True)
def test_backend(embyhander_mock, config):
backend = EmbyBackend(config, mock.Mock())
assert backend.uri_schemes == ['emby']
assert isinstance(backend.library, library.EmbyLibraryProvider)
assert isinstance(backend.playback, playback.EmbyPlaybackProvider)
assert backend.playlist is None