mopidy-jellyfin/tests/test_backend.py

18 lines
514 B
Python
Raw Normal View History

2016-12-15 12:30:22 +00:00
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