2020-03-08 12:26:33 +01:00
|
|
|
from mopidy_subidy import SubidyExtension
|
|
|
|
|
|
|
|
|
|
|
|
def test_get_default_config():
|
|
|
|
ext = SubidyExtension()
|
|
|
|
|
|
|
|
config = ext.get_default_config()
|
|
|
|
|
|
|
|
assert "[subidy]" in config
|
|
|
|
assert "enabled = true" in config
|
|
|
|
|
|
|
|
|
|
|
|
def test_get_config_schema():
|
|
|
|
ext = SubidyExtension()
|
|
|
|
|
|
|
|
schema = ext.get_config_schema()
|
|
|
|
|
|
|
|
# TODO Test the content of your config schema
|
2020-03-08 12:43:10 +01:00
|
|
|
assert "url" in schema
|
2020-03-08 12:26:33 +01:00
|
|
|
# assert "password" in schema
|
|
|
|
|
|
|
|
|
|
|
|
# TODO Write more tests
|