Version: 0.9.2 (but should exit in every versions until now)
Steps to reproduce
Here a minimal code reproducing the problem:
*** Settings ***
Library RequestsLibrary
*** Test Cases ***
Test
${response_error}= GET https://www.google.com/404 expected_status=any
${response_ok}= GET https://www.google.com expected_status=any
Status Should Be 404 ${response_error}
Version: 0.9.2 (but should exit in every versions until now)
Steps to reproduce
Here a minimal code reproducing the problem:
Actual result
Keyword
Status Should Be
fails:Actual result
Keyword
Status Should Be
should pass because response${response_error}
is actually a 404 errorInvestigation
It seems that a Requests Response in error is considered as "False". See this code
And so the following code takes the "last response" if the Response is in error (the response provided in parameter is ignored): See this code :