how can i monkeypatch request from starlette #1688
Unanswered
rajshahdev
asked this question in
Q&A
Replies: 2 comments 4 replies
-
@Kludex I need your help here!! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Then why not mock that function directly? 🤔 What you want is to call AWS on the test suite, or...? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i want to mock monkeypatch the request library from starlette
and here I am using pytest
but I got an error saying
or even when i pass in the test function
it points to the original(actual) function
so how can I monkeypatch with request.scope from starlette
this is the function that I need to mock
Beta Was this translation helpful? Give feedback.
All reactions