Update project to match cookiecutter-mopidy-ext
This commit is contained in:
parent
35340c5c69
commit
008527f115
9 changed files with 224 additions and 49 deletions
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
23
tests/test_extension.py
Normal file
23
tests/test_extension.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue