mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Fix #2051: don't try to sort None
I found the point in the test harnesses where None was introduced as a value for `TrackInfo.index`. Just using zero works fine.
This commit is contained in:
parent
829c4318f0
commit
5909c9ee89
1 changed files with 6 additions and 2 deletions
|
|
@ -98,7 +98,8 @@ class AutotagStub(object):
|
|||
track_id=u'trackid',
|
||||
artist=artist.replace('Tag', 'Applied'),
|
||||
artist_id=u'artistid',
|
||||
length=1
|
||||
length=1,
|
||||
index=0,
|
||||
)
|
||||
|
||||
def album_for_id(self, mbid):
|
||||
|
|
@ -112,7 +113,8 @@ class AutotagStub(object):
|
|||
title=u'Applied Title %d' % number,
|
||||
track_id=u'match %d' % number,
|
||||
artist=artist,
|
||||
length=1
|
||||
length=1,
|
||||
index=0,
|
||||
)
|
||||
|
||||
def _make_album_match(self, artist, album, tracks, distance=0, missing=0):
|
||||
|
|
@ -1072,6 +1074,7 @@ def test_album_info():
|
|||
track_info = TrackInfo(
|
||||
title=u'new title',
|
||||
track_id=u'trackid',
|
||||
index=0,
|
||||
)
|
||||
album_info = AlbumInfo(
|
||||
artist=u'artist',
|
||||
|
|
@ -1189,6 +1192,7 @@ class ImportDuplicateSingletonTest(unittest.TestCase, TestHelper,
|
|||
artist=u'artist',
|
||||
title=u'title',
|
||||
track_id=u'new trackid',
|
||||
index=0,
|
||||
)
|
||||
self.match_track.return_value = iter([track_info])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue