25 lines
586 B
Python
25 lines
586 B
Python
from __future__ import unicode_literals
|
|
|
|
import mopidy_funkwhale
|
|
|
|
|
|
def test_get_default_config():
|
|
ext = mopidy_funkwhale.Extension()
|
|
|
|
config = ext.get_default_config()
|
|
|
|
assert '[funkwhale]' in config
|
|
assert 'enabled = true' in config
|
|
assert 'url = https://demo.funkwhale.audio' in config
|
|
assert 'username = demo' in config
|
|
assert 'password = demo' in config
|
|
|
|
|
|
def test_get_config_schema():
|
|
ext = mopidy_funkwhale.Extension()
|
|
|
|
schema = ext.get_config_schema()
|
|
assert 'url' in schema
|
|
assert 'username' in schema
|
|
assert 'password' in schema
|