mirror of
https://github.com/beetbox/beets.git
synced 2026-02-11 09:54:31 +01:00
added comment to the test
This commit is contained in:
parent
106ea70fdb
commit
fc507faee2
1 changed files with 4 additions and 0 deletions
|
|
@ -79,6 +79,10 @@ class EdgeTest(unittest.TestCase):
|
|||
self.assertEqual(f.bitrate, 0)
|
||||
|
||||
def test_only_magic_bytes_jpeg(self):
|
||||
# Some jpeg files can only be recognized by their magic bytes and as
|
||||
# such aren't recognized by imghdr. Ensure that this still works thanks
|
||||
# to our own follow up mimetype detection based on
|
||||
# https://github.com/file/file/blob/master/magic/Magdir/jpeg#L12
|
||||
f = open(os.path.join(_common.RSRC, 'only-magic-bytes.jpg'), 'rb')
|
||||
jpg_data = f.read()
|
||||
self.assertEqual(
|
||||
|
|
|
|||
Loading…
Reference in a new issue