From 03de51e6ca4370e3ed4195d066306ff2f12b0c2e Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Thu, 14 Nov 2019 17:13:34 +0100 Subject: [PATCH] Fix missing quotes in step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: César Gallego Rodríguez Co-Authored-By: Roberto Abdelkader Martínez Pérez --- spec/test/features/steps/steps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/test/features/steps/steps.py b/spec/test/features/steps/steps.py index 39d987a..3c968ad 100644 --- a/spec/test/features/steps/steps.py +++ b/spec/test/features/steps/steps.py @@ -185,9 +185,9 @@ def step_impl(context, code): assert context.testing_response.status_code == int(code), f"Got {context.testing_response.status_code} instead" -@then('the response header {header_name} contains {value}') +@then('the response header "{header_name}" contains "{value}"') def step_impl(context, header_name, value): - assert context.response.headers.get(header_name) == value, f"Got {context.response.headers.get(header_name)} instead" + assert context.response.headers.get(header_name).split(';')[0] == value, f"Got {context.response.headers.get(header_name)} instead" @then('the testing response header {header_name} contains {value}')