mirror of
https://github.com/beetbox/beets.git
synced 2026-02-22 15:22:42 +01:00
test: Use unicode literals for library queries in playlist tests
This commit is contained in:
parent
fdd41b301d
commit
7ec55a5f3b
1 changed files with 4 additions and 4 deletions
|
|
@ -220,7 +220,7 @@ class PlaylistUpdateTestHelper(PlaylistTestHelper):
|
|||
class PlaylistTestItemMoved(PlaylistUpdateTestHelper, unittest.TestCase):
|
||||
def test_item_moved(self):
|
||||
# Emit item_moved event for an item that is in a playlist
|
||||
results = self.lib.items('path:{0}'.format(shlex_quote(
|
||||
results = self.lib.items(u'path:{0}'.format(shlex_quote(
|
||||
os.path.join(self.music_dir, 'd', 'e', 'f.mp3'))))
|
||||
item = results[0]
|
||||
beets.plugins.send(
|
||||
|
|
@ -229,7 +229,7 @@ class PlaylistTestItemMoved(PlaylistUpdateTestHelper, unittest.TestCase):
|
|||
os.path.join(self.music_dir, 'g', 'h', 'i.mp3')))
|
||||
|
||||
# Emit item_moved event for an item that is not in a playlist
|
||||
results = self.lib.items('path:{0}'.format(shlex_quote(
|
||||
results = self.lib.items(u'path:{0}'.format(shlex_quote(
|
||||
os.path.join(self.music_dir, 'x', 'y', 'z.mp3'))))
|
||||
item = results[0]
|
||||
beets.plugins.send(
|
||||
|
|
@ -266,13 +266,13 @@ class PlaylistTestItemMoved(PlaylistUpdateTestHelper, unittest.TestCase):
|
|||
class PlaylistTestItemRemoved(PlaylistUpdateTestHelper, unittest.TestCase):
|
||||
def test_item_removed(self):
|
||||
# Emit item_removed event for an item that is in a playlist
|
||||
results = self.lib.items('path:{0}'.format(shlex_quote(
|
||||
results = self.lib.items(u'path:{0}'.format(shlex_quote(
|
||||
os.path.join(self.music_dir, 'd', 'e', 'f.mp3'))))
|
||||
item = results[0]
|
||||
beets.plugins.send('item_removed', item=item)
|
||||
|
||||
# Emit item_removed event for an item that is not in a playlist
|
||||
results = self.lib.items('path:{0}'.format(shlex_quote(
|
||||
results = self.lib.items(u'path:{0}'.format(shlex_quote(
|
||||
os.path.join(self.music_dir, 'x', 'y', 'z.mp3'))))
|
||||
item = results[0]
|
||||
beets.plugins.send('item_removed', item=item)
|
||||
|
|
|
|||
Loading…
Reference in a new issue