Updating the test methods according to the new response interface.

Check the last commit to more information about the new return interface.
This commit is contained in:
2022-01-31 12:19:30 -03:00
parent 94337e2949
commit ad34f46e70
2 changed files with 25 additions and 25 deletions
+7 -5
View File
@@ -1,12 +1,14 @@
Feature: The API Proxy client
Scenario: A HTTP request with json body response
Given a API Proxy client
When a request is made with GET for the API: https://pokeapi.co/api/v2/pokemon/ditto
Then there must be a json response
And the pokemon name must be ditto
And an APIProxyRequest instance filled with the method GET for the API url: https://pokeapi.co/api/v2/pokemon/ditto
When a request is made with the previous instance
Then the body of this response must be a python dictionary
And the pokemon name, contained in the response body, must be ditto
Scenario: A HTTP request with text body response
Given a API Proxy client
When a request is made with GET for the API: https://www.slashdot.org
Then the response content type must be string
And an APIProxyRequest instance filled with the method GET for the API url: https://www.slashdot.org
When a request is made with the previous instance
Then the response body content type must be string