Skip to content

Commit

Permalink
fix: Escaping HTTP response message in VCR cassettes
Browse files Browse the repository at this point in the history
Ref: #788
  • Loading branch information
Stranger6667 committed Oct 5, 2020
1 parent 74457d5 commit a8b9e23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Changelog
- Status of individual interactions in VCR cassettes. Before this change, all statuses were taken from the overall test outcome,
rather than from the check results for a particular response. `#695`_
- Escaping header values in VCR cassettes. `#783`_
- Escaping HTTP response message in VCR cassettes. `#788`_

**Changed**

Expand Down Expand Up @@ -1380,6 +1381,7 @@ Deprecated
.. _0.3.0: https://github.com/schemathesis/schemathesis/compare/v0.2.0...v0.3.0
.. _0.2.0: https://github.com/schemathesis/schemathesis/compare/v0.1.0...v0.2.0

.. _#788: https://github.com/schemathesis/schemathesis/issues/788
.. _#783: https://github.com/schemathesis/schemathesis/issues/783
.. _#768: https://github.com/schemathesis/schemathesis/issues/768
.. _#757: https://github.com/schemathesis/schemathesis/issues/757
Expand Down
2 changes: 1 addition & 1 deletion src/schemathesis/cli/cassettes.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def format_checks(checks: List[SerializedCheck]) -> str:
response:
status:
code: '{interaction.response.status_code}'
message: '{interaction.response.message}'
message: {json.dumps(interaction.response.message)}
headers:
{format_headers(interaction.response.headers)}
body:
Expand Down

0 comments on commit a8b9e23

Please sign in to comment.