CrossRef / cayenne

MOVED to https://gitlab.com/crossref/rest_api
https://gitlab.com/crossref/rest_api
MIT License
17 stars 9 forks source link

Add tests around inconsistent work counts #9

Closed markwoodhall closed 6 years ago

markwoodhall commented 6 years ago

Issues CrossRef/rest-api-doc#304 and CrossRef/rest-api-doc#324 report consistency problems with works counts across a number of endpoints. This commit adds tests to verify data returned from those endpoints and specifically to make sure work counts across endpoints are consistent.

As part of this commit I also made a change to make sure the :items collection asserted against during testing was always in a deterministic state. This is why there are some changes to dev-resources that might not be expected.

I also needed to mock out get-member-list and get-prefix-info to return member and prefix info of a known state.

afandian commented 6 years ago

cayenne.works-test test passes on Mac OS, so the filepaths like dev-resources/works/?filter=from-deposit-date:2018.edn don't cause problems.