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.
This commit is contained in:
J0J0 Todos 2025-01-06 01:18:45 +01:00
parent 569ba73016
commit dd3a74ca4d

View file

@ -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"),
),
],
)