Closed jwodder closed 9 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 88.61%. Comparing base (
5970a3b
) to head (1ed5a55
). Report is 2 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@yarikoptic
test listing here for a set of query parameters to see that they map correctly to the API call
What exactly should be tested? Should there just be a test for each bool
argument that checks that a matching Dandiset is/isn't returned when the argument is true
/false
?
Note that there can't be a test that checks the entirety of the get_dandisets()
return value, as the test Dandisets created for most tests persist in later tests, and it's possible for tests to be skipped or run out of order, so there's no guarantee about what Dandisets will exist in the test Archive when a test runs.
Note that there can't be a test that checks the entirety of the
get_dandisets()
return value, as the test Dandisets created for most tests persist in later tests, and it's possible for tests to be skipped or run out of order, so there's no guarantee about what Dandisets will exist in the test Archive when a test runs.
I didn't realize that -- I thought that we just have a fixture to populate a number of dandisets and then test on them.
What exactly should be tested? Should there just be a test for each
bool
argument that checks that a matching Dandiset is/isn't returned when the argument istrue
/false
?
I think testing for that would suffice. Fixture could ensure to populate at least one dandiset to satisfy each criteria, then (with the light of above) - we could test that there is at least one dandiset satisfying the desired criteria.
Thank you!
:rocket: PR was released in 0.61.0
:rocket:
Closes #1413.