mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Update ftintitle.contains_feat unit tests
Since the `for_artist` keyword has been removed from `ftintitle.contains_feat`, the unit tests need to be updated. This includes the deletion of the test cases that test the `for_artist=True` delimiters.
This commit is contained in:
parent
ed627c031c
commit
669307c91c
1 changed files with 6 additions and 17 deletions
|
|
@ -175,14 +175,11 @@ class FtInTitlePluginTest(unittest.TestCase):
|
|||
parts = ftintitle.split_on_feat("Alice defeat Bob")
|
||||
assert parts == ("Alice defeat Bob", None)
|
||||
|
||||
def test_contains_feat_artist(self):
|
||||
def test_contains_feat(self):
|
||||
assert ftintitle.contains_feat("Alice ft. Bob")
|
||||
assert ftintitle.contains_feat("Alice feat. Bob")
|
||||
assert ftintitle.contains_feat("Alice feat Bob")
|
||||
assert ftintitle.contains_feat("Alice featuring Bob")
|
||||
assert ftintitle.contains_feat("Alice & Bob")
|
||||
assert ftintitle.contains_feat("Alice and Bob")
|
||||
assert ftintitle.contains_feat("Alice With Bob")
|
||||
assert ftintitle.contains_feat("Alice (ft. Bob)")
|
||||
assert ftintitle.contains_feat("Alice (feat. Bob)")
|
||||
assert ftintitle.contains_feat("Alice [ft. Bob]")
|
||||
|
|
@ -190,16 +187,8 @@ class FtInTitlePluginTest(unittest.TestCase):
|
|||
assert not ftintitle.contains_feat("Alice defeat Bob")
|
||||
assert not ftintitle.contains_feat("Aliceft.Bob")
|
||||
assert not ftintitle.contains_feat("Alice (defeat Bob)")
|
||||
|
||||
def test_contains_feat_title(self):
|
||||
assert ftintitle.contains_feat(
|
||||
"Live and Let Go (feat. Alice)", for_artist=False
|
||||
)
|
||||
assert ftintitle.contains_feat(
|
||||
"Live and Let Go [feat. Alice]", for_artist=False
|
||||
)
|
||||
assert ftintitle.contains_feat(
|
||||
"Live and Let Go feat. Alice", for_artist=False
|
||||
)
|
||||
assert not ftintitle.contains_feat("Live and Let Go", for_artist=False)
|
||||
assert not ftintitle.contains_feat("Come With Me", for_artist=False)
|
||||
assert ftintitle.contains_feat("Live and Let Go (feat. Alice)")
|
||||
assert ftintitle.contains_feat("Live and Let Go [feat. Alice]")
|
||||
assert ftintitle.contains_feat("Live and Let Go feat. Alice")
|
||||
assert not ftintitle.contains_feat("Live and Let Go")
|
||||
assert not ftintitle.contains_feat("Come With Me")
|
||||
|
|
|
|||
Loading…
Reference in a new issue