Implementing cookiecutter
This commit is contained in:
24
tests/test_extension.py
Executable file
24
tests/test_extension.py
Executable file
@ -0,0 +1,24 @@
|
||||
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()
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user