Skip to content

Commit

Permalink
Add test_get_genre case proving no-force keeps any
Browse files Browse the repository at this point in the history
because _get_existing_genres does not rely on configured separator.
  • Loading branch information
JOJ0 committed Jan 21, 2025
1 parent 819239d commit 4c6763c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/plugins/test_lastgenre.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,22 @@ def test_sort_by_depth(self):
},
("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):
Expand Down

0 comments on commit 4c6763c

Please sign in to comment.