1
0
Fork 0
mirror of https://dev.funkwhale.audio/funkwhale/mopidy synced 2024-11-14 20:47:51 +01:00
mopidy-funkwhale/tests/test_extension.py
2018-10-05 00:12:07 +02:00

25 lines
624 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
assert "cache_duration" in schema