File: test_extension.py

package info (click to toggle)
mopidy-soundcloud 3.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 864 kB
  • sloc: python: 826; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import unittest

from mopidy_soundcloud import Extension


class ExtensionTest(unittest.TestCase):
    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        assert "[soundcloud]" in config
        assert "enabled = True" in config

    def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()

        assert "auth_token" in schema
        assert "explore_songs" in schema