Files
Iris/__tests__/test_extension.py

25 lines
485 B
Python
Raw Permalink Normal View History

2019-11-24 21:17:41 +13:00
from mopidy_iris import Extension
from mopidy_iris import frontend as frontend_lib
def test_get_default_config():
ext = Extension()
config = ext.get_default_config()
assert "[iris]" in config
assert "enabled = true" in config
def test_get_config_schema():
ext = Extension()
2020-02-03 16:13:49 +13:00
# schema = ext.get_config_schema()
2019-11-24 21:17:41 +13:00
# TODO Test the content of your config schema
# assert "username" in schema
# assert "password" in schema
# TODO Write more tests