Closed davidorme closed 1 year ago
Ahh another query as well, was slightly surprised to see that tests passed without any modifications to the test files, but realised that neither of the index_to_text
functions had any tests defined. I can't tell if there's a good reason for this, suspect I might have forgotten to add them when I was making the ncbi_index_to_text
function
That is a good point. There are no tests on zenodo.py
either - that would require mocking the external zenodo responses.
Are you happy to approve this without tests? It would be good to move to a release, even if that release does have an "improve testing in these areas" issue hanging over it?
This PR:
ncbi_index_to_text
andtaxon_index_to_text
to take advantage of the synchronised taxon index tags to remove duplicated code.taxon_index_to_text
has anauth
argument to switch between the different taxon name formatting rules for GBIF vs NCBI.An example of the outputs of the function for GBIF and NCBI can be seen here: https://sandbox.zenodo.org/record/1143772