Skip to content

Commit

Permalink
Test __repr__ for TagImage
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiascode committed Mar 2, 2024
1 parent 0024921 commit ea34543
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tinytag/tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,12 @@ def test_image_loading_extra(path: str) -> None:
assert image.mime_type == 'image/jpeg'
assert image.name == 'extra.bright_colored_fish'
assert len(image.data) == 1220
assert str(image) == (
"{'name': 'extra.bright_colored_fish', 'data': b'\\xff\\xd8\\xff\\xe0\\x00"
"\\x10JFIF\\x00\\x01\\x01\\x01\\x00H\\x00H\\x00\\x00\\xff\\xe2\\x02\\xb0ICC_"
"PROFILE\\x00\\x01\\x01\\x00\\x00\\x02\\xa0lcm..', 'mime_type': 'image/jpeg', "
"'description': None}"
)


def test_mp3_utf_8_invalid_string() -> None:
Expand Down

0 comments on commit ea34543

Please sign in to comment.