-
Notifications
You must be signed in to change notification settings - Fork 36
Added test for update_profile method #2363
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2363 +/- ##
==========================================
- Coverage 77.16% 76.40% -0.77%
==========================================
Files 88 92 +4
Lines 3377 3607 +230
Branches 366 404 +38
==========================================
+ Hits 2606 2756 +150
- Misses 703 783 +80
Partials 68 68 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
@irisbian504 This looks great! I have a couple nits highlighted. Otherwise, could you create an issue to add tests for the update_profile method, then add "Fixes #XXXX" in the PR description?
|
|
||
| # WHEN we call update_profile with new data | ||
| updated_username = "updated_username" | ||
| updated_country = "UK" |
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.
nit: Technically, this should be lowercase
| # WHEN we call update_profile for this nonexistent record | ||
| result = service.update_profile( | ||
| user_id=NONEXISTENT_ID, | ||
| primary_country="UK", |
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.
nit: Here, too, this would be lowercase in production
anth-volk
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! Thanks @irisbian504
Fixes #2393