Skip to content

Refine WiiM tests#4

Merged
Linkplay2020 merged 3 commits intoLinkplay2020:feature/wiim-integrationfrom
balloob-travel:codex/wiim-configflow-followups
Mar 17, 2026
Merged

Refine WiiM tests#4
Linkplay2020 merged 3 commits intoLinkplay2020:feature/wiim-integrationfrom
balloob-travel:codex/wiim-configflow-followups

Conversation

@balloob-travel
Copy link
Copy Markdown

@balloob-travel balloob-travel commented Mar 16, 2026

Summary

  • update the WiiM discovery confirm step to rely on the typed discovered device info
  • rewrite the config flow tests to follow the scaffold-style flow manager pattern
  • add the standard mock_setup_entry fixture used by config flow tests
  • refactor the media player tests to use a shared MockWiimDevice, fixture-driven integration setup, service calls, and state-machine assertions instead of direct entity access

Testing

  • ruff check homeassistant/components/wiim tests/components/wiim
  • python -m pytest tests/components/wiim -q
  • ./.venv/bin/prek run --files tests/components/wiim/conftest.py tests/components/wiim/test_media_player.py

@balloob-travel balloob-travel changed the title Refine WiiM config flow tests Refine WiiM tests Mar 17, 2026
@balloob-travel balloob-travel force-pushed the codex/wiim-configflow-followups branch from 84b8318 to 2119294 Compare March 17, 2026 00:53
@Linkplay2020 Linkplay2020 merged commit b50fa42 into Linkplay2020:feature/wiim-integration Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants