Skip to content

Commit ea64dd3

Browse files
PaulBrandUWVlucagiove
authored andcommitted
Renames keyword
1 parent 9c3fca5 commit ea64dd3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

atests/test_requests.robot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,20 +283,20 @@ Trace Request
283283
${resp}= TRACE ${HTTP_LOCAL_SERVER}/anything
284284
Status Should Be OK ${resp}
285285

286-
Get request with get response
286+
Get request with last response
287287
[Tags] get
288288
GET ${HTTP_LOCAL_SERVER}/anything
289289
Status Should Be OK
290-
${resp}= Get response
290+
${resp}= Last response
291291
Should be equal ${resp.status_code} ${200}
292292
Should be equal ${resp.json()}[url] ${HTTP_LOCAL_SERVER}/anything
293293

294-
Post request with get response
294+
Post request with last response
295295
[Tags] post
296296
${data}= Create dictionary key1=one key2=two key3=3
297297
POST ${HTTP_LOCAL_SERVER}/anything json=${data}
298298
Status Should Be OK
299-
${resp}= Get response
299+
${resp}= Last response
300300
Should be equal ${resp.status_code} ${200}
301301
Should be equal ${resp.json()}[url] ${HTTP_LOCAL_SERVER}/anything
302302
Should be equal ${resp.json()}[json] ${data}

src/RequestsLibrary/RequestsKeywords.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ def get_file_for_streaming_upload(path):
168168
"""
169169
return open(path, "rb")
170170

171-
@keyword("Get response")
172-
def get_response(self) -> requests.Response:
171+
@keyword("Last response")
172+
def get_last_response(self) -> requests.Response:
173173
"""
174174
Returns the response from the last request.
175175
"""

0 commit comments

Comments
 (0)