-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: make NylasClient and its methods open for mocking #258
Conversation
This change makes the NylasClient class and its methods open to enable mocking in tests. - Added open modifier to NylasClient class - Made all resource accessor methods (messages, calendars, etc.) open - Made HTTP execution methods open for comprehensive mocking support Fixes #257 Co-Authored-By: Aaron de Mello <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #258 +/- ##
=========================================
Coverage 81.28% 81.28%
Complexity 316 316
=========================================
Files 35 35
Lines 967 967
Branches 88 88
=========================================
Hits 786 786
Misses 129 129
Partials 52 52 ☔ View full report in Codecov by Sentry. |
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
Add "(aside)" to your comment to have me ignore it. |
Added entry under Unreleased section for making NylasClient and its methods open to enable mocking in tests. Co-Authored-By: Aaron de Mello <[email protected]>
# Changelog * Made `NylasClient` and its methods open to enable mocking in tests (#258). * Added pagination support for folders (#259). * Fixed issue where reminders were not being updated correctly when updating an event (#261). # License <!-- Your PR comment must contain the following line for us to merge the PR. --> I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.
Make NylasClient and its methods open for mocking
This PR makes the NylasClient class and its methods open to enable mocking in tests, addressing issue #257.
Changes
open
modifier to NylasClient classTesting
These changes are purely related to class and method modifiers to enable mocking. The changes do not affect runtime behavior and maintain all existing functionality. The modifications only impact compile-time characteristics to allow for better testing capabilities.
Notes
Fixes #257
Link to Devin run: https://app.devin.ai/sessions/f6b8eb21945e4b84a4b26f39136760cd