-
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
[TST] Refactor tests #269
[TST] Refactor tests #269
Conversation
Pull Request Test Coverage Report for Build 7702731794
💛 - Coveralls |
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.
Very cool PR @alyssadai, thanks for figuring all of this out.
Looking over the double parameterization here is impressive, but also a bit confusing:
- when I read the parameterization I wonder: what is parameterized? There's only one parameter
- when I read the test itself where I am using the mock I wonder: what does this mock actually do?
I think we could probably live with that, but my sense is that pytest offers a simpler way to achieve the same outcome: https://docs.pytest.org/en/6.2.x/fixture.html#using-markers-to-pass-data-to-fixtures
Maybe you could take a look at that section (and the "Factories as fixtures" just after it) and see if you agree.
Otherwise: 🧑🍳
🚀 PR was released in |
RETURN_AGG
option #126Changes proposed in this pull request:
RETURN_AGG=true
mock_successful_get
(which depends on another fixture for the return object) kept a separate function to avoid overly complicated parametrization when writing tests (i.e., you cannot easily pass one fixture as a parameter to another fixture)Checklist
[ENH]
,[FIX]
,[REF]
,[TST]
,[CI]
,[MNT]
,[INF]
,[MODEL]
,[DOC]
) (see https://neurobagel.org/contributing/pull_requests for more info)skip-release
(to be applied by maintainers only)Closes #XXXX
For new features:
For bug fixes: