First commit

This commit is contained in:
Ander
2014-07-14 13:20:52 +02:00
commit e16784d374
21 changed files with 611 additions and 0 deletions

0
tests/__init__.py Normal file
View File

27
tests/test_extension.py Normal file
View 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