mirror of
https://github.com/beetbox/beets.git
synced 2026-01-01 13:33:02 +01:00
test multiple items in test_modify_formatted
This commit is contained in:
parent
795bc2efc1
commit
0456c8f790
1 changed files with 9 additions and 4 deletions
|
|
@ -288,11 +288,16 @@ class ModifyTest(unittest.TestCase, TestHelper):
|
|||
self.assertEqual(len(list(new_items)), 7)
|
||||
|
||||
def test_modify_formatted(self):
|
||||
item = self.lib.items().get()
|
||||
orig_title = item.title
|
||||
for i in range(0, 3):
|
||||
self.add_item_fixture(title=f"title{i}",
|
||||
artist="artist",
|
||||
album="album")
|
||||
items = list(self.lib.items())
|
||||
self.modify("title=${title} - append")
|
||||
item.load()
|
||||
self.assertEqual(item.title, f"{orig_title} - append")
|
||||
for item in items:
|
||||
orig_title = item.title
|
||||
item.load()
|
||||
self.assertEqual(item.title, f"{orig_title} - append")
|
||||
|
||||
# Album Tests
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue