Mocking post() request in Request_mock library /u/Renganathan_M Python Education

I am trying to mock a post request using request_mock library. My actual post request contains header and payload (a dict). I have been researching on how to do that.. I tried to use body/json.. they dont work. I need to post method to send me binary content; for which I use content argument. I dont see a way of adding the payload in the lock post request. can I get some assistance please.

submitted by /u/Renganathan_M
[link] [comments]

​r/learnpython I am trying to mock a post request using request_mock library. My actual post request contains header and payload (a dict). I have been researching on how to do that.. I tried to use body/json.. they dont work. I need to post method to send me binary content; for which I use content argument. I dont see a way of adding the payload in the lock post request. can I get some assistance please. submitted by /u/Renganathan_M [link] [comments] 

I am trying to mock a post request using request_mock library. My actual post request contains header and payload (a dict). I have been researching on how to do that.. I tried to use body/json.. they dont work. I need to post method to send me binary content; for which I use content argument. I dont see a way of adding the payload in the lock post request. can I get some assistance please.

submitted by /u/Renganathan_M
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *