From dd3a74ca4d6f30d7bd3eb787a02f4dbb3ca8f490 Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Mon, 6 Jan 2025 01:18:45 +0100 Subject: [PATCH] Fix lastgenre limit to count test - No idea where a missing separator (which is default) could happen...just set it explicitely. - Since we now refactored fetch_genre to returning a list we can add mock multiple fetched gernes easier. --- test/plugins/test_lastgenre.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/plugins/test_lastgenre.py b/test/plugins/test_lastgenre.py index 4d0a64d49..09f1b7b98 100644 --- a/test/plugins/test_lastgenre.py +++ b/test/plugins/test_lastgenre.py @@ -351,22 +351,23 @@ class LastGenrePluginTest(BeetsTestCase): }, ("Blues\u0000Jazz", "keep + album"), ), - # 10 - limit a lot of results to just 3 + # 10 - limit a lot of results ( { "force": True, "keep_existing": True, "source": "album", "whitelist": True, - "count": 3, + "count": 5, "canonical": False, "prefer_specific": False, + "separator": ", ", }, "original unknown, Blues, Rock, Folk, Metal", { - "album": ["Jazz"], + "album": ["Jazz", "Bebop", "Hardbop"], }, - ("Blues, Rock, Metal", "keep + album"), + ("Blues, Rock, Metal, Jazz, Bebop", "keep + album"), ), ], )