From 057bb58a635c113df54d08e53a044772bf831644 Mon Sep 17 00:00:00 2001 From: "kunal.sontakke" Date: Fri, 6 Sep 2024 16:35:49 +0530 Subject: [PATCH] assertion added in test_delete_request.py --- API_Requests/Tests/test_delete_request.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/API_Requests/Tests/test_delete_request.py b/API_Requests/Tests/test_delete_request.py index 840aa21..f12dec2 100644 --- a/API_Requests/Tests/test_delete_request.py +++ b/API_Requests/Tests/test_delete_request.py @@ -18,7 +18,8 @@ def test_004(self,setup_teardown): logging.info("*********** executing test_004 ****************") # send delete request - delete_request = self.client.delete_request(end_point="objects/6",headers=self.headers,json_data_fmt=True,response_with_status_code=True) + delete_request,status_code = self.client.delete_request(end_point="objects/6",headers=self.headers,json_data_fmt=True,response_with_status_code=True) # verify to get response assert delete_request is not None, "DELETE request returned None" + assert status_code == 204 \ No newline at end of file