mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
First commit
This commit is contained in:
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
27
tests/test_extension.py
Normal file
27
tests/test_extension.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import unittest
|
||||
|
||||
from mopidy_touchscreen import Extension, frontend as frontend_lib
|
||||
|
||||
|
||||
class ExtensionTest(unittest.TestCase):
|
||||
|
||||
def test_get_default_config(self):
|
||||
ext = Extension()
|
||||
|
||||
config = ext.get_default_config()
|
||||
|
||||
self.assertIn('[touchscreen]', config)
|
||||
self.assertIn('enabled = true', config)
|
||||
|
||||
def test_get_config_schema(self):
|
||||
ext = Extension()
|
||||
|
||||
schema = ext.get_config_schema()
|
||||
|
||||
# TODO Test the content of your config schema
|
||||
#self.assertIn('username', schema)
|
||||
#self.assertIn('password', schema)
|
||||
|
||||
# TODO Write more tests
|
||||
Reference in New Issue
Block a user