Need help with mocking http request within asyncClient using responses #2591
Answered
by
chbndrhnns
rathourarv
asked this question in
Q&A
-
|
Hi All, I have a method that makes an HTTP call to another service and I want to mock the API call using responses(https://github.com/getsentry/responses) on my test. The test tries to connect to the service instead of using a mock while running. Am I missing something here? how should I test this? and test Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
chbndrhnns
Feb 23, 2023
Replies: 1 comment 2 replies
-
|
The description of the
Are you sure this works with httpx? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
lovelydinosaur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The description of the
responsespackage readsAre you sure this works with httpx?