mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Add test
This commit is contained in:
parent
472aa12767
commit
f275835cd3
1 changed files with 40 additions and 0 deletions
|
|
@ -205,6 +205,46 @@ def add_item(
|
||||||
("Alice med Bob", "Song 1"),
|
("Alice med Bob", "Song 1"),
|
||||||
id="custom-feat-words-keep-in-artists-drop-from-title",
|
id="custom-feat-words-keep-in-artists-drop-from-title",
|
||||||
),
|
),
|
||||||
|
# ---- skip_if_artist_and_album_artists_is_the_same variants ----
|
||||||
|
pytest.param(
|
||||||
|
{
|
||||||
|
"format": "feat. {}",
|
||||||
|
"skip_if_artist_and_album_artists_is_the_same": True,
|
||||||
|
},
|
||||||
|
("ftintitle",),
|
||||||
|
("Alice feat. Bob", "Song 1", "Alice"),
|
||||||
|
("Alice", "Song 1 feat. Bob"),
|
||||||
|
id="skip-if-artist-and-album-artists-is-the-same-different-match",
|
||||||
|
),
|
||||||
|
pytest.param(
|
||||||
|
{
|
||||||
|
"format": "feat. {}",
|
||||||
|
"skip_if_artist_and_album_artists_is_the_same": False,
|
||||||
|
},
|
||||||
|
("ftintitle",),
|
||||||
|
("Alice feat. Bob", "Song 1", "Alice"),
|
||||||
|
("Alice", "Song 1 feat. Bob"),
|
||||||
|
id="skip-if-artist-and-album-artists-is-the-same-different-match-b",
|
||||||
|
),
|
||||||
|
pytest.param(
|
||||||
|
{
|
||||||
|
"format": "feat. {}",
|
||||||
|
"skip_if_artist_and_album_artists_is_the_same": True,
|
||||||
|
},
|
||||||
|
("ftintitle",),
|
||||||
|
("Alice feat. Bob", "Song 1", "Alice feat. Bob"),
|
||||||
|
("Alice feat. Bob", "Song 1"),
|
||||||
|
id="skip-if-artist-and-album-artists-is-the-same-matching-match",
|
||||||
|
),
|
||||||
|
pytest.param(
|
||||||
|
{
|
||||||
|
"format": "feat. {}",
|
||||||
|
},
|
||||||
|
("ftintitle",),
|
||||||
|
("Alice feat. Bob", "Song 1", "Alice feat. Bob"),
|
||||||
|
("Alice", "Song 1 feat. Bob"),
|
||||||
|
id="skip-if-artist-and-album-artists-is-the-same-matching-match-b",
|
||||||
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_ftintitle_functional(
|
def test_ftintitle_functional(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue