Skip to content

Commit

Permalink
Add docs for regex on response strings
Browse files Browse the repository at this point in the history
  • Loading branch information
cdent committed Mar 3, 2024
1 parent d786f5f commit 4479df9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ Response Expectations
``response_strings`` A list of string fragments expected
to be present in the response body.

If the value is wrapped in ``/.../``
the response body will be searched
for the value as a regular
expression.

``response_json_paths`` A dictionary of JSONPath rules paired
with expected matches. Using this
rule requires that the content being
Expand Down

0 comments on commit 4479df9

Please sign in to comment.