Skip to content

Commit

Permalink
Merge pull request #2352 from BhattcharyaCodes/patch-1
Browse files Browse the repository at this point in the history
Update rest.py
  • Loading branch information
cyberw authored May 24, 2023
2 parents 162e192 + 025ff94 commit afef307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def t(self):
with self.rest("POST", "/post", json={"foo": 1}) as resp:
if resp.js["data"]["foo"] != 1:
resp.failure(f"Unexpected value of foo in response {resp.text}")
# assertions are a nice short way of expressiont your expectations about the response. The AssertionError thrown will be caught
# and fail the request, including the message and the payload in the failure content
# assertions are a nice short way to express your expectations about the response. The AssertionError thrown will be caught
# and fail the request, including the message and the payload in the failure content.
assert resp.js["data"]["foo"] == 1, "Unexpected value of foo in response"

# assertions are a nice short way to validate the response. The AssertionError they raise
Expand Down

0 comments on commit afef307

Please sign in to comment.