Stabilize CI test suite after merged show_icon/BaseCore behavior changes#25
Merged
Conversation
Agent-Logs-Url: https://github.com/gensyn/HomeAssistantPlugin/sessions/6527bd55-e8ca-42ab-8a59-63115fd1298c Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
Agent-Logs-Url: https://github.com/gensyn/HomeAssistantPlugin/sessions/6527bd55-e8ca-42ab-8a59-63115fd1298c Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
Agent-Logs-Url: https://github.com/gensyn/HomeAssistantPlugin/sessions/6527bd55-e8ca-42ab-8a59-63115fd1298c Co-authored-by: gensyn <36128035+gensyn@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
gensyn
May 18, 2026 15:54
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Stabilizes the CI test suite after recent behavior changes to show_icon and BaseCore by updating test mocks and expectations to match the new code paths.
Changes:
- Mock GTK
Buttonconstruction inIconWindowandShowIcontests and update attach count / validation branch expectations. - Patch and assert
migrate_settingsinBaseCore.on_readytests. - Add
get_icon/lmmocks for the newset_enabled_disabledicon-gating logic.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| test/actions/show_icon/test_icon_window.py | Mock Button, bump attach count to 15, rework icon validation test for the empty-value branch. |
| test/actions/show_icon/test_icon_action.py | Mock Button and lm in UI creation test; add get_icon and lm mocks for enabled/disabled test. |
| test/actions/cores/base_core/test_base_core_on_ready.py | Patch and assert migrate_settings in all three on_ready tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The test workflow started failing after recent merged behavior changes in
show_iconandBaseCore. The failures were test/expectation drift (plus UI construction side effects), not production regressions.show_icontest alignmenttest_icon_actionexpectations to match new icon-gating behavior (get_icon()-driven sensitivity logic).Buttoncreation increate_ui_elements/IconWindowinit tests to avoid constructing real UI objects during unit tests.IconWindowinit assertions for the additional browse button wiring/attachments.BaseCore.on_readytest alignmentmigrate_settings(...)inon_readytests to reflect the new migration call path before settings initialization.Validation path coverage preserved
IconWindow.on_add_button.