File: test_extension.py

package info (click to toggle)
mopidy-local 3.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 448 kB
  • sloc: python: 3,153; sql: 544; sh: 15; makefile: 3
file content (33 lines) | stat: -rw-r--r-- 893 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
26
27
28
29
30
31
32
33
from mopidy_local import Extension


def test_get_default_config():
    ext = Extension()

    config = ext.get_default_config()

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


def test_get_config_schema():
    ext = Extension()

    schema = ext.get_config_schema()

    assert "library" in schema
    assert "media_dir" in schema
    assert "data_dir" in schema
    assert "playlists_dir" in schema
    assert "tag_cache_file" in schema
    assert "scan_timeout" in schema
    assert "scan_flush_threshold" in schema
    assert "scan_follow_symlinks" in schema
    assert "included_file_extensions" in schema
    assert "excluded_file_extensions" in schema
    # from mopidy-local-sqlite
    assert "directories" in schema
    assert "timeout" in schema
    assert "use_artist_sortname" in schema
    # from mopidy-local-images
    assert "album_art_files" in schema