reqtest: Add RecorderMode #123
Unanswered
earthboundkid
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Do you have any code sample? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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