mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Fix/add lastgenre fallback tests
This commit is contained in:
parent
50e2619ed2
commit
b4590ec3e0
1 changed files with 22 additions and 3 deletions
|
|
@ -296,7 +296,7 @@ class LastGenrePluginTest(BeetsTestCase):
|
|||
},
|
||||
("Unknown Genre, Jazz", "keep + artist"),
|
||||
),
|
||||
# 7 - fallback to fallback when nothing found
|
||||
# 7 - fallback to original when nothing found
|
||||
(
|
||||
{
|
||||
"force": True,
|
||||
|
|
@ -313,9 +313,28 @@ class LastGenrePluginTest(BeetsTestCase):
|
|||
"album": None,
|
||||
"artist": None,
|
||||
},
|
||||
("original unknown", "original fallback"),
|
||||
),
|
||||
# 8 - fallback to fallback if no original
|
||||
(
|
||||
{
|
||||
"force": True,
|
||||
"keep_existing": True,
|
||||
"source": "track",
|
||||
"whitelist": True,
|
||||
"fallback": "fallback genre",
|
||||
"canonical": False,
|
||||
"prefer_specific": False,
|
||||
},
|
||||
"",
|
||||
{
|
||||
"track": None,
|
||||
"album": None,
|
||||
"artist": None,
|
||||
},
|
||||
("fallback genre", "fallback"),
|
||||
),
|
||||
# 8 - null charachter as separator
|
||||
# 9 - null charachter as separator
|
||||
(
|
||||
{
|
||||
"force": True,
|
||||
|
|
@ -332,7 +351,7 @@ class LastGenrePluginTest(BeetsTestCase):
|
|||
},
|
||||
("Blues\u0000Jazz", "keep + album"),
|
||||
),
|
||||
# 9 - limit a lot of results to just 3
|
||||
# 10 - limit a lot of results to just 3
|
||||
(
|
||||
{
|
||||
"force": True,
|
||||
|
|
|
|||
Loading…
Reference in a new issue