pytest: assertion & test work, but do not output the correct failure reason
I have a test script I am using to validate whether or not my requests to the Slack API (using the Slack SDK for python) are valid or not. If the test fails, the output should be the specific reason for failure, which is automatically returned as a response by the Slack Webclient. To see if my script works, I intentionally used an incorrect API token and the test did indeed fail which is good, but I received the generic response that the request failed, and not the custom message containing the reason for failure.