Removing "entity" from steps

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-08-21 12:00:56 +02:00
parent f840de2b59
commit 8040cb5b3b
5 changed files with 9 additions and 9 deletions
@@ -19,7 +19,7 @@ Feature: Append new routes in Kapow! server.
""" """
Then I get 201 as response code Then I get 201 as response code
And I get "Created" as response reason phrase And I get "Created" as response reason phrase
And I get the following entity as response body: And I get the following response body:
""" """
{ {
"method": "GET", "method": "GET",
@@ -50,7 +50,7 @@ Feature: Append new routes in Kapow! server.
""" """
Then I get 201 as response code Then I get 201 as response code
And I get "Created" as response reason phrase And I get "Created" as response reason phrase
And I get the following entity as response body: And I get the following response body:
""" """
{ {
"method": "GET", "method": "GET",
@@ -17,7 +17,7 @@ Feature: Kapow! server reject insert responses with semantic errors.
""" """
Then I get 422 as response code Then I get 422 as response code
And I get "Missing Mandatory Field" as response reason phrase And I get "Missing Mandatory Field" as response reason phrase
And I get the following entity as response body: And I get the following response body:
""" """
{ {
"missing_mandatory_fields": [ "missing_mandatory_fields": [
@@ -26,7 +26,7 @@ Feature: Routes auto-ordering after inserting in a Kapow! server.
""" """
Then I get 200 as response code Then I get 200 as response code
And I get "OK" as response reason phrase And I get "OK" as response reason phrase
And I get the following entity as response body: And I get the following response body:
""" """
{ {
"method": "GET", "method": "GET",
@@ -86,7 +86,7 @@ Feature: Routes auto-ordering after inserting in a Kapow! server.
""" """
Then I get 200 as response code Then I get 200 as response code
And I get "OK" as response reason phrase And I get "OK" as response reason phrase
And I get the following entity as response body: And I get the following response body:
""" """
{ {
"method": "GET", "method": "GET",
@@ -147,7 +147,7 @@ Feature: Routes auto-ordering after inserting in a Kapow! server.
""" """
Then I get 200 as response code Then I get 200 as response code
And I get "OK" as response reason phrase And I get "OK" as response reason phrase
And I get the following entity as response body: And I get the following response body:
""" """
{ {
"method": "GET", "method": "GET",
@@ -25,7 +25,7 @@ Feature: Insert new routes in Kapow! server.
""" """
Then I get 200 as response code Then I get 200 as response code
And I get "OK" as response reason phrase And I get "OK" as response reason phrase
And I get the following entity as response body: And I get the following response body:
""" """
{ {
"method": "GET", "method": "GET",
@@ -54,7 +54,7 @@ Feature: Insert new routes in Kapow! server.
""" """
Then I get 200 as response code Then I get 200 as response code
And I get "OK" as response reason phrase And I get "OK" as response reason phrase
And I get the following entity as response body: And I get the following response body:
""" """
{ {
"method": "GET", "method": "GET",
+1 -1
View File
@@ -132,7 +132,7 @@ def step_impl(context, reason):
assert context.response.reason == reason, f"Got {context.response.reason} instead" assert context.response.reason == reason, f"Got {context.response.reason} instead"
@then('I get the following entity as response body') @then('I get the following response body')
def step_impl(context): def step_impl(context):
for row in context.table: for row in context.table:
for name, value in row.items(): for name, value in row.items():