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

Allow multiple calls to response.failure() or response.success() within the same with block #1336

Merged
merged 2 commits into from Apr 18, 2020

Conversation

heyman
Copy link
Member

@heyman heyman commented Apr 17, 2020

PR for #1335

… using catch_response=True. The last call is what determines if the request is considered a success or failure.

Add catch_response tests (for both HttpLocust's client and FastHttpLocust's client)
@codecov
Copy link

codecov bot commented Apr 17, 2020

Codecov Report

Merging #1336 into master will increase coverage by 0.01%.
The diff coverage is 93.54%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1336      +/-   ##
==========================================
+ Coverage   81.20%   81.21%   +0.01%     
==========================================
  Files          24       24              
  Lines        2219     2231      +12     
  Branches      334      338       +4     
==========================================
+ Hits         1802     1812      +10     
+ Misses        331      329       -2     
- Partials       86       90       +4     
Impacted Files Coverage Δ
locust/clients.py 90.19% <93.33%> (-1.48%) ⬇️
locust/contrib/fasthttp.py 88.08% <93.75%> (+0.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 27d93f0...640b372. Read the comment docs.

locust/test/test_client.py Outdated Show resolved Hide resolved
@cyberw
Copy link
Collaborator

cyberw commented Apr 17, 2020

LGTM apart from that error message I didnt understand :)

@heyman heyman merged commit 59cafb0 into master Apr 18, 2020
@heyman heyman deleted the fix-1335 branch April 18, 2020 10:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants