mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 18:13:17 +01:00
added tests
This commit is contained in:
parent
b349914d3a
commit
c8d3a6f6fc
2 changed files with 8 additions and 0 deletions
BIN
test/rsrc/only-magic-bytes.jpg
Normal file
BIN
test/rsrc/only-magic-bytes.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 584 KiB |
|
|
@ -53,6 +53,14 @@ class ArtTestMixin(object):
|
|||
return self._jpg_data
|
||||
_jpg_data = None
|
||||
|
||||
@property
|
||||
def jpg_data_only_magic_bytes(self):
|
||||
if not self._jpg_data:
|
||||
with open(os.path.join(_common.RSRC, 'only-magic-bytes.jpg'), 'rb') as f:
|
||||
self._jpg_data = f.read()
|
||||
return self._jpg_data
|
||||
_jpg_data = None
|
||||
|
||||
@property
|
||||
def tiff_data(self):
|
||||
if not self._jpg_data:
|
||||
|
|
|
|||
Loading…
Reference in a new issue