-
Notifications
You must be signed in to change notification settings - Fork 30
Functions: test keyword parameter #222
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
Functions: test keyword parameter #222
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.
We should consider how to deal with multiple asserts.
Only the first assertion to fail is shown in the results. This is a design limitation of pytest
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 representation of the error is not ideal, but I suspect there's no better easy way to solve this.
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.
Perfect. Only suggestion would be to avoid displaying the assertion below the list, but I'm not sure whether this is possible.
To do that, we would have to change how the test output is displayed in general, but I do not want to touch that now. I think in general testsuite needs some fixes (there are probably some related issues already) but I would prefer to address that in a separate PR after the tutorial, to be safe. So for now, if you approve, I would merge this PR as is. |
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 to me!
Fixes #221