File: test_extension.py

package info (click to toggle)
mopidy-mpd 3.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: python: 7,640; makefile: 3
file content (25 lines) | stat: -rw-r--r-- 581 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
22
23
24
25
from mopidy_mpd import Extension


def test_get_default_config():
    ext = Extension()

    config = ext.get_default_config()

    assert "[mpd]" in config
    assert "enabled = true" in config


def test_get_config_schema():
    ext = Extension()

    schema = ext.get_config_schema()

    assert "hostname" in schema
    assert "port" in schema
    assert "password" in schema
    assert "max_connections" in schema
    assert "connection_timeout" in schema
    assert "zeroconf" in schema
    assert "command_blacklist" in schema
    assert "default_playlist_scheme" in schema