Merge lp:~tartley/canonical-identity-provider/status-code-diagnostics into lp:canonical-identity-provider/release
Proposed by
Jonathan Hartley
Status: | Merged |
---|---|
Approved by: | Jonathan Hartley |
Approved revision: | no longer in the source branch. |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | lp:~tartley/canonical-identity-provider/status-code-diagnostics |
Merge into: | lp:canonical-identity-provider/release |
Prerequisite: | lp:~tartley/canonical-identity-provider/allow-new-emails |
Diff against target: |
15 lines (+4/-1) 1 file modified
src/api/v20/tests/test_handlers.py (+4/-1) |
To merge this branch: | bzr merge lp:~tartley/canonical-identity-provider/status-code-diagnostics |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Manrique (community) | Approve | ||
Review via email: mp+377377@code.launchpad.net |
Commit message
Test fail diagnostics for bad response status code.
If a response has an unexpected status code,
display the response content
and the expected/actual status codes.
Description of the change
This is an annoyingly tiny MP, but I wanted to make sure this change gets in regardless what happens to my other MPs, which are all potentially more controversial.
To post a comment you must log in.
LGTM with two caveats/comments.
1- Would .format() syntax be clearer/nicer? (I prefer .format but don't mind old % syntax)
2- If response is big, this will cause horrid test output spew. It might be desirable, or may not. Not sure there's a good alternative :/ truncating it might risk losing the actual part in conflict.