-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add Pushover Notification Support and Unit Tests #286
Conversation
@sourcery-ai review |
Reviewer's Guide by SourceryThis pull request adds support for Pushover notifications in the icloud-docker project. The changes include new functions to send notifications via Pushover, configuration parsing enhancements to support Pushover settings, extended unit tests to validate the new functionality, and updates to documentation and configuration files. The implementation involves adding new modules in the notification and configuration code, integrating Pushover API calls, and testing multiple scenarios including success, failure, throttling, and dry-run modes. No diagrams generated as the changes look simple and do not need a visual representation. 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 @john-pierre - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a helper function to reduce the duplication in
test_post_message_to_pushover
andtest_post_message_to_pushover_fail
. - The throttling test in
test_notify.py
could be improved by asserting that thelast_send
time is updated when a message is sent.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟡 Complexity: 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.
@john-pierre : Thank you for very well-written PR! It was a pleasure to merge it in the project. 🥇 |
This PR introduces support for Pushover notifications in the icloud-docker project. The following enhancements have been made:
Added Pushover Integration:
Implemented Pushover notifications in notify.py to allow sending alerts via the Pushover API.
Updated config_parser.py to include Pushover-related configuration fields (user_key and api_token).
Extended Unit Tests:
Added test cases in test_notify.py to validate Pushover notifications.
Updated test_config_parser.py to ensure correct parsing of Pushover settings.
Updated Documentation:
Enhanced README.md with details about configuring Pushover notifications.
These improvements provide an additional notification channel, making icloud-docker more versatile for different user preferences.
Looking forward to feedback and suggestions!
Summary by Sourcery
Add Pushover support for notifications.
New Features:
Tests: