reqtest: Add RecorderMode #123
Unanswered
earthboundkid
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When writing tests you want to record responses, but then once you get done writing tests, you want it to be an error to issue a request without a corresponding entry. You can do this by just switching from reqtest.Caching to reqtest.Replay, but it would be more convenient if there were a single function that just took one of three mode arguments.
Beta Was this translation helpful? Give feedback.
All reactions