mirror of
https://github.com/beetbox/beets.git
synced 2026-01-13 19:52:48 +01:00
test: Add non-existing item to playlist tests
This commit is contained in:
parent
b00b38dab6
commit
9f3acce2ae
1 changed files with 3 additions and 0 deletions
|
|
@ -68,9 +68,12 @@ class PlaylistTest(unittest.TestCase, helper.TestHelper):
|
|||
with open(os.path.join(self.playlist_dir, 'absolute.m3u'), 'w') as f:
|
||||
f.write('{0}\n'.format(beets.util.displayable_path(i1.path)))
|
||||
f.write('{0}\n'.format(beets.util.displayable_path(i2.path)))
|
||||
f.write('{0}\n'.format(os.path.join(
|
||||
self.music_dir, 'nonexisting.mp3')))
|
||||
with open(os.path.join(self.playlist_dir, 'relative.m3u'), 'w') as f:
|
||||
f.write('{0}\n'.format(os.path.join('a', 'b', 'c.mp3')))
|
||||
f.write('{0}\n'.format(os.path.join('d', 'e', 'f.mp3')))
|
||||
f.write('{0}\n'.format('nonexisting.mp3'))
|
||||
|
||||
self.config['directory'] = self.music_dir
|
||||
self.config['playlist']['relative_to'] = 'library'
|
||||
|
|
|
|||
Loading…
Reference in a new issue