You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RESPX: <Request('POST', 'https://graphql-pokemon2.vercel.app/')> not mocked!
Is this possible?
The text was updated successfully, but these errors were encountered:
joe-narvaez
changed the title
Is there a way I can call my local server, but mock the calls it makes
Is there a way I can call my local server, but mock the calls it makes?
Dec 12, 2021
joe-narvaez
changed the title
Is there a way I can call my local server, but mock the calls it makes?
Is there a way I can call my local server, but mock the calls my api makes?
Dec 12, 2021
I figured it out. With respx you need a testing (fastapi testing client,). I guess it gets closer to the call site and create the patch. With this you can toggle e2e (mocking external apis).
Let's say my api will call the pokemon api. Can I mock out the call to the pokemon api indirectly? For example,
Currently this fails as
Is this possible?
The text was updated successfully, but these errors were encountered: