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
+ Eliminates dependency on teapot.fly.dev; see #148.
+ Fixes#149.
In the future we should store some and mock some arXiv API responses. At
the very least, this offers some backup for when the API is down; of
course, it introduces the risk of divergence from the live API.
Motivation
teapot.fly.dev is a service I wrote and host — it reimplements the httpstat.us API (mirrors requested HTTP statuses).
It's best to avoid making real network requests in integration tests, especially for services besides the arXiv API (arguably unavoidable):
Solution
get_code_client
should return a client that mocks HTTP responses. I assume there are good solutions for mockingrequests
.Considered alternatives
#148 replaces httpstat.us; it had all the disadvantages of teapot.fly.dev, with two additional downsides:
Additional context
None
The text was updated successfully, but these errors were encountered: