-
Notifications
You must be signed in to change notification settings - Fork 37
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
live: Add __enter__
and __exit__
.
#354
Conversation
d5ac918
to
38f8f12
Compare
Call `make_summary` and `make_report` on `__exit__`.
38f8f12
to
58681ad
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## 1.0 #354 +/- ##
======================================
Coverage ? 93.33%
======================================
Files ? 36
Lines ? 1711
Branches ? 147
======================================
Hits ? 1597
Misses ? 90
Partials ? 24 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
def __exit__(self, exc_type, exc_val, exc_tb): | ||
self.end() |
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.
Minor follow-up: let's either document end()
or get rid of it and move the logic here. What do you think @daavoo?
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.
I slightly prefer getting rid of end()
since I'm not sure it's worth adding to docs, but no strong preference
Wait for #353