You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# FIXME: Seed the database with documents that would be included in an `alldocs` collection,
# such that the `/data_objects/study/{study_id}` endpoint (which uses that collection)
# would return some data. Currently, we are practically _not testing_ that endpoint.
Previously, there was a test that targeted the core functionality; but it was removed because it relied on a static database dump (which conformed to a specific schema) residing on the NERSC filesystem.
Related (bug report involving this endpoint): #723
The text was updated successfully, but these errors were encountered:
I created a branch (in a draft PR) in which I implemented the following two new tests:
test_find_data_objects_for_study_having_none: the Study exists, but doesn't have anything associated with it (e.g. no Biosamples, no DataGenerations, no DataObjects). In this case, the endpoint returns no DataObjects.
test_find_data_objects_for_study_having_one: the Study exists, a Biosample is associated with that Study, a MassSpectrometry (which inherits from DataObject) has that Biosample as an input, and a DataObject is an output of that MassSpectrometry. In this case, the endpoint returns one DataObject.
The only test that targets the
/data_objects/study/{study_id}
endpoint, targets a corner case where the specified study does not exist.nmdc-runtime/tests/test_api/test_endpoints.py
Lines 349 to 364 in bcdf8f3
There are no tests that target the core functionality (a.k.a. "happy path") of the endpoint.
nmdc-runtime/tests/test_api/test_endpoints.py
Lines 36 to 38 in bcdf8f3
Previously, there was a test that targeted the core functionality; but it was removed because it relied on a static database dump (which conformed to a specific schema) residing on the NERSC filesystem.
Related (bug report involving this endpoint): #723
The text was updated successfully, but these errors were encountered: