Open davidorme opened 1 year ago
taxondb.py
also completely lacks unit tests, which I think stems from the same issue (tricky mocking)
Probably using this: https://requests-mock.readthedocs.io/en/latest/mocker.html
@jacobcook1995 I've created a branch and pushed a prototype fixture and test to it. I think we can adopt this after PR #115 to mock the communications with the GBIF and NCBI - although NCBI uses FTP now that I think about it. Damn.
Not for
release/3.0.0
but we should add tests for the behaviour of thezenodo
andentry_point
modules. Both of those are communicating with external resources - it isn't immediately clear to me what the way to mock that meaningfully in tests is.See for example #56