Write Tests to Cover Example Queries #270
Labels
enhancement
New feature or request
expands-search-api
Issues relating to the ExPaNDS Search API section of this repo
Description:
The documentation details a number of example queries, for dataset, document and instrument endpoints. We should write tests to cover these (using Flask's test client like in
test/icat/endpoints/test_findone.py
). I'm not sure whether we'll be able to replicate the exact data they use (stored in a json file which I guess gets loaded in somewhere) but we should at least demonstrate that the functionality demonstrated in those examples does work. If we had to use their data for that, I guess you could write a script using that json file and create the data in ICAT (perhaps using the PaNOSC data model modelled in the repo with classes?).Acceptance criteria:
The text was updated successfully, but these errors were encountered: