-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
test:Add Integration tests for account delete functions #6108
test:Add Integration tests for account delete functions #6108
Conversation
2c0ac08
to
9628668
Compare
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
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.
undefined name 'unittest'
9628668
to
7385e54
Compare
7385e54
to
a0be7c7
Compare
46d3ab8
to
66c065e
Compare
Codecov Report
@@ Coverage Diff @@
## development #6108 +/- ##
===============================================
+ Coverage 66.16% 66.45% +0.29%
===============================================
Files 285 286 +1
Lines 14212 14242 +30
===============================================
+ Hits 9403 9465 +62
+ Misses 4809 4777 -32
Continue to review full report at Codecov.
|
add test for user email modified when deleted Add tests for user delete restore Hound Issues Added exception handling test
66c065e
to
ecab241
Compare
@iamareebjamal @uds5501 @shreyanshdwivedi Please review! |
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.
Tests look good!
save_to_db(user1) | ||
user2 = create_user(email="test_user@gmail.com.deleted", password="testpass") | ||
save_to_db(user2) | ||
self.assertRaises(ForbiddenException, modify_email_for_user_to_be_restored, user2) |
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.
The tests LGTM 👍
@mrsaicharan1 just a query - Is the user2 passed to the function modify_email_for_user_to_be_restored
by this line?
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.
@shreyanshdwivedi yes, that's how assertRaises
works!
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.
Cool. Approving
@iamareebjamal @CosmicCoder96 Please review. |
@niranjan94 @CosmicCoder96 PLease have a look |
add test for user email modified when deleted Add tests for user delete restore Hound Issues Added exception handling test
Fixes #6107
Part of #5320
Short description of what this resolves:
Increases test coverage by adding integrations tests for user delete helper functions
Changes proposed in this pull request:
Checklist
development
branch.