Skip to content

Commit

Permalink
test multiple items in test_modify_formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncaen committed Dec 15, 2021
1 parent 795bc2e commit 0456c8f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions test/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,16 @@ def test_selective_modify(self):
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

Expand Down

0 comments on commit 0456c8f

Please sign in to comment.