[DOCS] Note TESTRESPONSE can't be used immediately after TESTSETUP (#41542)

This commit is contained in:
James Rodewig 2019-04-25 13:58:48 -04:00
parent a02f5544fe
commit 2e255a6446
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ for its modifiers:
"figures out" the path. This is especially useful for making sweeping
assertions like "I made up all the numbers in this example, don't compare
them" which looks like `// TESTRESPONSE[s/\d+/$body.$_path/]`.
* You can't use `// TESTRESPONSE` immediately after `// TESTSETUP`. Instead,
consider using `// TEST[continued]` or rearrange your snippets.
* `// TESTRESPONSE[_cat]`: Add substitutions for testing `_cat` responses. Use
this after all other substitutions so it doesn't make other substitutions
difficult.