Skip to content

Commit 629bc19

Browse files
committed
Renames keyword
1 parent ea3cd17 commit 629bc19

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
@@ -152,8 +152,8 @@ def get_file_for_streaming_upload(path):
152152
"""
153153
return open(path, "rb")
154154

155-
@keyword("Get response")
156-
def get_response(self) -> requests.Response:
155+
@keyword("Last response")
156+
def get_last_response(self) -> requests.Response:
157157
"""
158158
Returns the response from the last request.
159159
"""

0 commit comments

Comments
 (0)