From 261379f395da77393d00959067f78e5448bc0cb5 Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Tue, 21 Jan 2025 23:54:56 +0100 Subject: [PATCH] Add test_get_genre case proving no-force keeps any because _get_existing_genres does not rely on configured separator. --- test/plugins/test_lastgenre.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/plugins/test_lastgenre.py b/test/plugins/test_lastgenre.py index 7cdfcb9e1..e6cda923c 100644 --- a/test/plugins/test_lastgenre.py +++ b/test/plugins/test_lastgenre.py @@ -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):