mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 18:13:17 +01:00
test: Add playlist testcases for nonexisting playlists
This commit is contained in:
parent
f9f2fa0e26
commit
d52dcdd48f
1 changed files with 10 additions and 0 deletions
|
|
@ -82,6 +82,16 @@ class PlaylistTest(unittest.TestCase, helper.TestHelper):
|
|||
u'another item',
|
||||
]))
|
||||
|
||||
def test_query_name_nonexisting(self):
|
||||
q = u'playlist:nonexisting'.format(self.playlist_dir.name)
|
||||
results = self.lib.items(q)
|
||||
self.assertEqual(set(results), set())
|
||||
|
||||
def test_query_path_nonexisting(self):
|
||||
q = u'playlist:{0}/nonexisting.m3u'.format(self.playlist_dir.name)
|
||||
results = self.lib.items(q)
|
||||
self.assertEqual(set(results), set())
|
||||
|
||||
|
||||
def suite():
|
||||
return unittest.TestLoader().loadTestsFromName(__name__)
|
||||
|
|
|
|||
Loading…
Reference in a new issue