Update project to match cookiecutter-mopidy-ext

This commit is contained in:
Stein Magnus Jodal 2020-03-08 12:26:33 +01:00
parent 35340c5c69
commit 008527f115
9 changed files with 224 additions and 49 deletions

0
tests/__init__.py Normal file
View file

23
tests/test_extension.py Normal file
View file

@ -0,0 +1,23 @@
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
# assert "username" in schema
# assert "password" in schema
# TODO Write more tests