An amazing Python tool that allows us to improve ourTesting Software setup, locally and offline.

Problem

We do not want to be dependent on external services when our own code makes external calls to HTTP endpoints. Any flakiness with the external services translates to failed tests, even if our own code works as expected.

Solution

VCR.py runs the test suit live, records all the responses in a fixtures folder, and uses this folder on subsequent test runs, no longer requiring access to the Web in order to run the tests. It is also much faster since it just fetches the cached HTTP calls, rather than waiting on external servers for the code to be run