Skip to content

Commit

Permalink
Add lastgenre testcase with unicode \0 separator
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Jan 2, 2025
1 parent 1abdb5a commit 022af4b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/plugins/test_lastgenre.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,21 @@ def test_sort_by_depth(self):
},
("Allowed Genre", "original"),
),
# 13 - test with a null charachter as separator
(
{
"force": True,
"keep_allowed": True,
"source": "album",
"whitelist": True,
"separator": "\u0000"
},
"allowed genre",
{
"album": "another allowed genre",
},
("allowed genre\u0000another allowed genre", "keep + album"),
),
],
)
def test_get_genre(config_values, item_genre, mock_genres, expected_result):
Expand Down

0 comments on commit 022af4b

Please sign in to comment.