[beta] Add support for Message Metadata and Subscribe in Slack API #1151
Conversation
Codecov Report
@@ Coverage Diff @@
## feat-hermes #1151 +/- ##
===============================================
- Coverage 86.65% 86.52% -0.14%
===============================================
Files 110 110
Lines 10760 10787 +27
===============================================
+ Hits 9324 9333 +9
- Misses 1436 1454 +18
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
LGTM!
Seems like test coverage is a bit low on this PR. Looks like the named methods like apps_notifications_subscriptions_create call into the api_call method but slightly modify the keyworded arguments (**kwargs) before calling into api_call. It seems to me like this modify-kwargs logic is what is not covered by unit tests.
Not sure how strict we are in adhering to the code coverage. Given the structure of this code, the unit tests would be very light to ensure coverage. Adding these tests would be more about chasing coverage than preventing regressions or assuring quality, but, green check marks are nice?
|
@filmaj - Re: Test coverage. Great questions you raised - Since this would be merged into a beta release branch I will bring this to the team to see what our M.O should be when we're doing beta release. This feature is a little trickier to support with tests as well, since a notification subscription request cannot be initiated from the test suite, despite the way the API method is named. |
|
Is there a good way anyone knows of to mock |
|
@seratch - Things should be all synced now! |
seratch
left a comment
There was a problem hiding this comment.
LGTM. You can squash the commits when merging 👍
…lackapi#1151) * Add apps.notifications.subscriptions.* methods + metadata
Summary
These are changes intended for beta release - as these are not GA, I have not yet included method unit tests.
Category (place an
xin each of the[ ])/docs-src(Documents, have you run./scripts/docs.sh?)/docs-src-v2(Documents, have you run./scripts/docs-v2.sh?)/tutorial(PythOnBoardingBot tutorial)tests/integration_tests(Automated tests for this library)Requirements (place an
xin each[ ])python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.shafter making the changes.