|
29 | 29 | sort_keys = {"product": "name"} |
30 | 30 |
|
31 | 31 |
|
32 | | -@given('"{header_name}" request headers') |
| 32 | +@given('"{header_name}" request headers:') |
33 | 33 | def given_request_headers(context: Context, header_name: str): |
34 | 34 | table_headers = parse_table(table=context.table, context=context) |
35 | 35 | context.headers[header_name] = dict(**table_headers, apikey=context.api_key) |
36 | 36 |
|
37 | 37 |
|
38 | 38 | @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:' |
40 | 40 | ) |
41 | 41 | def given_made_request( |
42 | 42 | context: Context, http_method: str, header_name: str, endpoint: str |
@@ -93,7 +93,7 @@ def given_made_request( |
93 | 93 |
|
94 | 94 |
|
95 | 95 | @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:' |
97 | 97 | ) |
98 | 98 | def when_make_request( |
99 | 99 | context: Context, http_method: str, header_name: str, endpoint: str |
@@ -293,7 +293,7 @@ def then_response(context: Context, status_code: str): |
293 | 293 | ) |
294 | 294 |
|
295 | 295 |
|
296 | | -@then("the response headers contain") |
| 296 | +@then("the response headers contain:") |
297 | 297 | def then_response(context: Context): |
298 | 298 | expected_response_headers = parse_table(table=context.table, context=context) |
299 | 299 | assert_is_subset( |
|
0 commit comments