Skip to content

Commit 8c024b3

Browse files
NRL-512 Remove unused step
1 parent 872faba commit 8c024b3

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/features/steps/2_request.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -258,21 +258,3 @@ def consumer_head_request_step(
258258
elif consumer_or_producer == "consumer":
259259
client = consumer_client_from_context(context, ods_code)
260260
context.response = client.head(endpoint)
261-
262-
263-
@when(
264-
"{consumer_or_producer} '{ods_code}' sends HEAD request to '{endpoint}' endpoint with parameters"
265-
)
266-
def consumer_head_request_step_with_parameters(
267-
context: Context, consumer_or_producer: str, ods_code: str, endpoint: str
268-
):
269-
if not context.table:
270-
raise ValueError("No search query table provided")
271-
272-
items = {row["parameter"]: row["value"] for row in context.table}
273-
274-
if consumer_or_producer == "producer":
275-
client = producer_client_from_context(context, ods_code)
276-
elif consumer_or_producer == "consumer":
277-
client = consumer_client_from_context(context, ods_code)
278-
context.response = client.head(endpoint, items)

0 commit comments

Comments
 (0)