-
Notifications
You must be signed in to change notification settings - Fork 5
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
Doctests #274
Conversation
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.
Looks good, better to run doctests whenever other tests are run.
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.
Nice. We were a bit lazy writing the initial tests using non-existant variables :D
I'm going to use this fix to avoid the terminal width issue pytest-dev/pytest#4030 (comment) |
Adding the doctests breaks the code coverage. I think there is a fix for this, but I don't know what it is (maybe a non-editable install) and I'm giving up for the day. |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #274 +/- ##
=======================================
Coverage 95.15% 95.15%
=======================================
Files 24 24
Lines 2190 2190
Branches 404 404
=======================================
Hits 2084 2084
Misses 86 86
Partials 20 20
☔ View full report in Codecov by Sentry. |
This discussion is incredibly helpful for debugging these kind of issues. tl-dr; something like For whatever reason, coverage thinks that the modules that have the doctests in them aren't in the source scope for some reason unless we specify
I have no idea why this happens, something to do with these lines |
Pull request
Please confirm that this pull request has done the following:
Example added (either to an existing notebook or as a new notebook, where applicable)