-
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: Use nested transactions for all tests #6981
Conversation
assert notification.title == 'Invitation to be Dinosaur at Mass Extinction' | ||
assert ( | ||
notification.message | ||
== "You've been invited to be one of the <strong>Dinosaurs</strong> at <strong>Mass Extinction</strong>." |
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.
line too long (113 > 90 characters)
assert notification.title == 'Session Homeless Therapy has been accepted' | ||
assert ( | ||
notification.message | ||
== 'The session <strong>Homeless Therapy</strong> has been <strong>accepted</strong> ' |
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.
line too long (94 > 90 characters)
if __name__ == '__main__': | ||
unittest.main() | ||
|
||
link = 'https://test.link' |
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.
Black would make changes.
- Create legacy test case for breaking cases - Use proxy for db session - Test time reduced to 25 sec TODO: - Fix factory ID sequence reset - Add nested transactions in dredd tests
Complexity increasing per file
==============================
- tests/all/integration/api/helpers/test_notification.py 1
See the complete overview on Codacy |
Codecov Report
@@ Coverage Diff @@
## development #6981 +/- ##
============================================
Coverage 60.87% 60.87%
============================================
Files 259 259
Lines 13564 13564
============================================
Hits 8257 8257
Misses 5307 5307 Continue to review full report at Codecov.
|
TODO: