mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 23:12:51 +01:00
Test mediafile with unicode strings
This commit is contained in:
parent
cd7b74271a
commit
4ca3c8764e
1 changed files with 2 additions and 2 deletions
|
|
@ -343,7 +343,7 @@ class ReadWriteTestBase(ArtTestMixin):
|
|||
return MediaFile(target)
|
||||
|
||||
def _generate_tags(self, base=None):
|
||||
"""Make a dict of tags with correct values and consitent dates.
|
||||
"""Return dictionary of tags, mapping tag names to values.
|
||||
"""
|
||||
tags = {}
|
||||
if base is None:
|
||||
|
|
@ -353,7 +353,7 @@ class ReadWriteTestBase(ArtTestMixin):
|
|||
if key == 'art':
|
||||
tags[key] = self.jpg_data
|
||||
elif isinstance(value, unicode):
|
||||
tags[key] = 'value %s' % key
|
||||
tags[key] = 'value\u2010%s' % key
|
||||
elif isinstance(value, int):
|
||||
tags[key] = 1
|
||||
elif isinstance(value, float):
|
||||
|
|
|
|||
Loading…
Reference in a new issue