Add test_get_genre case proving no-force keeps any

because _get_existing_genres does not rely on configured separator.
This commit is contained in:
J0J0 Todos 2025-01-21 23:54:56 +01:00
parent 34b9021772
commit 261379f395

View file

@ -369,6 +369,22 @@ class LastGenrePluginTest(BeetsTestCase):
},
("Blues, Rock, Metal, Jazz, Bebop", "keep + album, whitelist"),
),
# 11 - force off does not rely on configured separator
(
{
"force": False,
"keep_existing": False,
"source": "album",
"whitelist": True,
"count": 2,
"separator": ", ",
},
"not ; configured | separator",
{
"album": ["Jazz", "Bebop"],
},
("not ; configured | separator", "keep any, no-force"),
),
],
)
def test_get_genre(config_values, item_genre, mock_genres, expected_result):