| 1 |
from beets.util.pathformats import get_path_formats |
| 2 |
|
| 3 |
|
| 4 |
def test_get_path_formats(config): |
| 5 |
"""Ensure the function prepends custom and preserves defaults.""" |
| 6 |
# override the default 'singleton' path and add a new one |
| 7 |
config["paths"].set({"singleton": "bar", "new": "hello"}) |
| 8 |
|
| 9 |
assert get_path_formats(config["paths"]) == [ |
| 10 |
("singleton:true", "bar"), |
| 11 |
("new", "hello"), |
| 12 |
# defaults |
| 13 |
("default", "$albumartist/$album%aunique{}/$track $title"), |
| 14 |
("comp:true", "Compilations/$album%aunique{}/$track $title"), |
| 15 |
] |