From 025ff94d5b905cfca182eae3765b0996a323073e Mon Sep 17 00:00:00 2001 From: BhattacharyaCodes Date: Wed, 24 May 2023 15:45:37 +0530 Subject: [PATCH] Update rest.py Edit contains grammar error and type correction. --- examples/rest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/rest.py b/examples/rest.py index 81f269fa59..df435c9ea6 100644 --- a/examples/rest.py +++ b/examples/rest.py @@ -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