Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test_edit: Expect mtime to change, unbreaks the multiple-item tests.
  • Loading branch information
wordofglass committed Aug 22, 2017
1 parent 18c82ca commit c811102
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_edit.py
Expand Up @@ -162,7 +162,7 @@ def test_title_edit_apply(self, mock_write):
self.assertCounts(mock_write, write_call_count=self.TRACK_COUNT,
title_starts_with=u'modified t\u00eftle')
self.assertItemFieldsModified(self.album.items(), self.items_orig,
['title'])
['title', 'mtime'])

def test_single_title_edit_apply(self, mock_write):
"""Edit title for one item in the library, then apply changes."""
Expand Down Expand Up @@ -202,7 +202,7 @@ def test_album_edit_apply(self, mock_write):

self.assertCounts(mock_write, write_call_count=self.TRACK_COUNT)
self.assertItemFieldsModified(self.album.items(), self.items_orig,
['album'])
['album', 'mtime'])
# Ensure album is *not* modified.
self.album.load()
self.assertEqual(self.album.album, u'\u00e4lbum')
Expand Down Expand Up @@ -235,7 +235,7 @@ def test_a_album_edit_apply(self, mock_write):
self.assertCounts(mock_write, write_call_count=self.TRACK_COUNT)
self.assertEqual(self.album.album, u'modified \u00e4lbum')
self.assertItemFieldsModified(self.album.items(), self.items_orig,
['album'])
['album', 'mtime'])

def test_a_albumartist_edit_apply(self, mock_write):
"""Album query (-a), edit albumartist field, apply changes."""
Expand All @@ -249,7 +249,7 @@ def test_a_albumartist_edit_apply(self, mock_write):
self.assertCounts(mock_write, write_call_count=self.TRACK_COUNT)
self.assertEqual(self.album.albumartist, u'the modified album artist')
self.assertItemFieldsModified(self.album.items(), self.items_orig,
['albumartist'])
['albumartist', 'mtime'])

def test_malformed_yaml(self, mock_write):
"""Edit the yaml file incorrectly (resulting in a malformed yaml
Expand Down

0 comments on commit c811102

Please sign in to comment.