Skip to content

Commit

Permalink
Fix test_albuminfo_change_artist_does_not_change_items
Browse files Browse the repository at this point in the history
by adding (inherit=True) to fit with the new behaviour of the store() method
and add a second test that checks the opposite.
  • Loading branch information
JOJ0 committed Jul 19, 2023
1 parent c631cab commit 0a96d3c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/test_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,10 +1022,17 @@ def test_albuminfo_change_albumartist_changes_items(self):
self.assertEqual(i.albumartist, 'myNewArtist')
self.assertNotEqual(i.artist, 'myNewArtist')

def test_albuminfo_change_artist_does_change_items(self):
ai = self.lib.get_album(self.i)
ai.artist = 'myNewArtist'
ai.store(inherit=True)
i = self.lib.items()[0]
self.assertEqual(i.artist, 'myNewArtist')

def test_albuminfo_change_artist_does_not_change_items(self):
ai = self.lib.get_album(self.i)
ai.artist = 'myNewArtist'
ai.store()
ai.store(inherit=False)
i = self.lib.items()[0]
self.assertNotEqual(i.artist, 'myNewArtist')

Expand Down

0 comments on commit 0a96d3c

Please sign in to comment.