mirror of
https://github.com/beetbox/beets.git
synced 2025-12-07 17:16:07 +01:00
test: Fix playlist plugin path handling for Windows compatibility
This commit is contained in:
parent
055f2d3702
commit
31c687c853
1 changed files with 8 additions and 2 deletions
|
|
@ -87,7 +87,10 @@ class PlaylistTest(unittest.TestCase, helper.TestHelper):
|
|||
]))
|
||||
|
||||
def test_query_path(self):
|
||||
q = u'playlist:{0}/test.m3u'.format(self.playlist_dir)
|
||||
q = u'playlist:{0}'.format(os.path.join(
|
||||
self.playlist_dir,
|
||||
'test.m3u',
|
||||
))
|
||||
results = self.lib.items(q)
|
||||
self.assertEqual(set([i.title for i in results]), set([
|
||||
u'some item',
|
||||
|
|
@ -100,7 +103,10 @@ class PlaylistTest(unittest.TestCase, helper.TestHelper):
|
|||
self.assertEqual(set(results), set())
|
||||
|
||||
def test_query_path_nonexisting(self):
|
||||
q = u'playlist:{0}/nonexisting.m3u'.format(self.playlist_dir)
|
||||
q = u'playlist:{0}'.format(os.path.join(
|
||||
self.playlist_dir,
|
||||
'nonexisting.m3u',
|
||||
))
|
||||
results = self.lib.items(q)
|
||||
self.assertEqual(set(results), set())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue