mopidy-jellyfin/tests/test_backend.py

18 lines
554 B
Python
Raw Permalink Normal View History

2016-12-15 12:30:22 +00:00
from __future__ import unicode_literals
import mock
2019-04-26 01:29:13 +00:00
from mopidy_jellyfin import library, playback
from mopidy_jellyfin.backend import JellyfinBackend
2016-12-15 12:30:22 +00:00
2019-04-26 01:29:13 +00:00
@mock.patch('mopidy_jellyfin.backend.JellyfinHandler', autospec=True)
def test_backend(jellyfinhander_mock, config):
backend = JellyfinBackend(config, mock.Mock())
2016-12-15 12:30:22 +00:00
2019-04-26 01:29:13 +00:00
assert backend.uri_schemes == ['jellyfin']
2016-12-15 12:30:22 +00:00
2019-04-26 01:29:13 +00:00
assert isinstance(backend.library, library.JellyfinLibraryProvider)
assert isinstance(backend.playback, playback.JellyfinPlaybackProvider)
2016-12-15 12:30:22 +00:00
assert backend.playlist is None