Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding name argument in the http post call with catch response argument #608

Closed
sg107 opened this issue Jun 20, 2017 · 2 comments
Closed

Comments

@sg107
Copy link

sg107 commented Jun 20, 2017

If name argument is used as a part of http call like this,

response = self.client.post(paymenturl, data=(open('API requests/payment_mastercard.xml', 'r')), name="payment")

it is seen in the web UI statistics.

But not sure where to use the same name argument as a part of a call with catch response:

with self.client.post(paymenturl, data=(open('API requests/payment.xml', 'r')),catch_response=True) as response:

I tried passing name as argument in the post call with catch response to no avail.

Any pointers on this?

@cyberw
Copy link
Collaborator

cyberw commented Oct 18, 2019

Closing this due to lack of activity. I hope you solved this, try slack if you still need help :)

@cyberw cyberw closed this as completed Oct 18, 2019
@heyman
Copy link
Member

heyman commented Oct 21, 2019

I'm guessing that this might have been caused by forgetting to call response.success() or response.failure() within the with-block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants