Skip to content

Commit

Permalink
assertion added in test_delete_request.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalSontakke committed Sep 6, 2024
1 parent d3deac3 commit 057bb58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion API_Requests/Tests/test_delete_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 057bb58

Please sign in to comment.