The library uses CachedSession from requests_cache.
This means that changes to the API can cause the tests which use the API to pass, even when the API changes.
Solution
- Do not use
CachedSession for tests
- Use
CachedSession, but only with a short expire_after=1 argument, or always_revalidate=True argument.
The library uses
CachedSessionfromrequests_cache.This means that changes to the API can cause the tests which use the API to pass, even when the API changes.
Solution
CachedSessionfor testsCachedSession, but only with a shortexpire_after=1argument, oralways_revalidate=Trueargument.