-
Notifications
You must be signed in to change notification settings - Fork 35
Tests: add fixtures for several modules. #528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's GuideThis pull request updates the File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @fabienduval - I've reviewed your changes - here's some feedback:
- Update the PR title to accurately reflect the substantial refactoring of module classifications, not just fixture additions.
- Multiple modules have had capability-defining mixins (e.g.,
RfMixin,SwitchMixin,DimmableMixin) removed; confirm these changes accurately reflect their intended functionality. - Verify if
DeviceType.NLDshould remain uncategorized after itsDeviceCategorymapping was removed.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| DeviceType.NIS, | ||
| DeviceType.NBO, | ||
| DeviceType.NPC, | ||
| DeviceType.NLPD, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (testing): Consider adding specific assertions for NLPD module instances.
Rather than just checking that DeviceType.NLPD is in expected_types, fetch an NLPD instance from async_home.modules (via your new fixtures) and assert its key attributes or state. This verifies not only recognition but also correct parsing and representation of its data.
a5c2c44 to
65bf5e6
Compare
cgtobi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you for your contribution @fabienduval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @fabienduval - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
This PR needs to be rebased before it can be merged. |
Summary by Sourcery
Add fixtures for several modules.
Tests:
Summary by Sourcery
Add more test fixtures for home module to increase test coverage
New Features:
Tests: