Fixtures for HTTP response assertions

Let’s just list some libraries first:

  • exvcr
  • mock
  • patch
  • mox (only if you mock your own code, not that of a library dependency)
  • bypass

I used mock just yesterday but was made aware of patch in the meantime and will use it next time because it does seem to have more functionality.

Related thread from just yesterday: Approach for numerous edge cases, HTTP GET, exvcr - #4 by dimitarvp


Responding to your actual question, it seems that exvcr has what you need. You record “cassettes” and then specify their location in the test case file.

5 Likes