Skip to content

Update media_source fixtures for 2025.5.0 #907

@mweinelt

Description

@mweinelt

Version of the custom_component

5.9.2

Configuration

n/a

Describe the bug

With 2025.5.0 the media source test fixtures are out of date. Among other things they now require use of the MediaClass enum.

Debug log

FAILED tests/test_media_source.py::test_async_browse_media_root - AssertionError: assert {'can_expand'...', ...}], ...} == {'can_expand'... '...
FAILED tests/test_media_source.py::test_async_browse_media_clip_search_root - AssertionError: assert {'can_expand': True, 'can_play': False, 'children_me...
FAILED tests/test_media_source.py::test_async_browse_media_clip_search_drilldown - AssertionError: assert {'can_expand': False, 'can_play': True, 'children_me...
FAILED tests/test_media_source.py::test_async_browse_media_clip_search_multi_month_drilldown - AssertionError: assert {'can_expand': True, 'can_play': False, 'children_me...
FAILED tests/test_media_source.py::test_async_browse_media_recordings_root - AssertionError: assert {'can_expand'...>, ...}], ...} == {'can_expand'...re...
FAILED tests/test_media_source.py::test_snapshots - AssertionError: assert {'can_expand'...e, ...}], ...} == {'can_expand'... '...
FAILED tests/test_media_source.py::test_in_progress_event - AssertionError: assert {'can_expand'...e, ...}], ...} == {'can_expand'... '...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions