Fix missing quotes in step

Co-authored-by: César Gallego Rodríguez <cesar.gallego.next@bbva.com>
Co-Authored-By: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
pancho horrillo
2019-11-14 17:13:34 +01:00
parent ee9bb8df9c
commit 03de51e6ca
+2 -2
View File
@@ -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}')