Skip to content

Commit

Permalink
Fix mime type in forked_daapd test (home-assistant#82660)
Browse files Browse the repository at this point in the history
  • Loading branch information
uvjustin authored Nov 24, 2022
1 parent 6cb004b commit fcfc0e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/components/forked_daapd/test_browse_media.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ async def test_async_browse_image(hass, hass_client, config_entry):
(MediaType.ARTIST, "3815427709949443149"),
(MediaType.TRACK, "456"),
):
mock_fetch_image.return_value = (b"image_bytes", media_type)
mock_fetch_image.return_value = (b"image_bytes", "image/jpeg")
media_content_id = create_media_content_id(
"title", media_type=media_type, id_or_path=media_id
)
Expand All @@ -391,7 +391,7 @@ async def test_async_browse_image(hass, hass_client, config_entry):
== f"http://owntone_instance/some_{media_type}_image"
)
assert resp.status == HTTPStatus.OK
assert resp.content_type == media_type
assert resp.content_type == "image/jpeg"
assert await resp.read() == b"image_bytes"


Expand Down

0 comments on commit fcfc0e6

Please sign in to comment.