Resolve "Tagging artists/albums genres when importing music files"

This commit is contained in:
Eliot Berriot 2019-12-18 07:52:09 +01:00
commit aea8e4fc59
12 changed files with 333 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import pytest
from click.testing import CliRunner
from funkwhale_api.cli import main
from funkwhale_api.cli import library
from funkwhale_api.cli import users
@ -102,6 +103,16 @@ from funkwhale_api.cli import users
)
],
),
(
("albums", "add-tags-from-tracks"),
tuple(),
[(library, "handler_add_tags_from_tracks", {"albums": True})],
),
(
("artists", "add-tags-from-tracks"),
tuple(),
[(library, "handler_add_tags_from_tracks", {"artists": True})],
),
],
)
def test_cli(cmd, args, handlers, mocker):