mirror of
https://github.com/jellyfin/mopidy-jellyfin.git
synced 2024-11-27 07:30:22 +00:00
18 lines
514 B
Python
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
|