Skip to content

Commit cc86c8e

Browse files
committed
Fix local feature tests
1 parent bacc771 commit cc86c8e

File tree

1 file changed

+4
-4
lines changed
  • src/api/tests/feature_tests/steps

1 file changed

+4
-4
lines changed

src/api/tests/feature_tests/steps/steps.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
sort_keys = {"product": "name"}
3030

3131

32-
@given('"{header_name}" request headers')
32+
@given('"{header_name}" request headers:')
3333
def given_request_headers(context: Context, header_name: str):
3434
table_headers = parse_table(table=context.table, context=context)
3535
context.headers[header_name] = dict(**table_headers, apikey=context.api_key)
3636

3737

3838
@given(
39-
'I have already made a "{http_method}" request with "{header_name}" headers to "{endpoint}" with body'
39+
'I have already made a "{http_method}" request with "{header_name}" headers to "{endpoint}" with body:'
4040
)
4141
def given_made_request(
4242
context: Context, http_method: str, header_name: str, endpoint: str
@@ -93,7 +93,7 @@ def given_made_request(
9393

9494

9595
@when(
96-
'I make a "{http_method}" request with "{header_name}" headers to "{endpoint}" with body'
96+
'I make a "{http_method}" request with "{header_name}" headers to "{endpoint}" with body:'
9797
)
9898
def when_make_request(
9999
context: Context, http_method: str, header_name: str, endpoint: str
@@ -293,7 +293,7 @@ def then_response(context: Context, status_code: str):
293293
)
294294

295295

296-
@then("the response headers contain")
296+
@then("the response headers contain:")
297297
def then_response(context: Context):
298298
expected_response_headers = parse_table(table=context.table, context=context)
299299
assert_is_subset(

0 commit comments

Comments
 (0)