From 6368532717360c02319deb45774f2d78665d29d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Tue, 20 Aug 2019 09:59:38 +0200 Subject: [PATCH] Parametrize step --- spec/test/features/steps/steps.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/test/features/steps/steps.py b/spec/test/features/steps/steps.py index bb73e67..145891c 100644 --- a/spec/test/features/steps/steps.py +++ b/spec/test/features/steps/steps.py @@ -106,13 +106,13 @@ def step_impl(context): raise NotImplementedError('STEP: Then I get an empty response body') -@when('I delete the route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx"') -def step_impl(context): +@when('I delete the route with id "{id}"') +def step_impl(context, id): raise NotImplementedError('STEP: When I delete the route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx"') -@given('It has a route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx"') -def step_impl(context): +@given('It has a route with id "{id}"') +def step_impl(context, id): raise NotImplementedError('STEP: Given It has a route with id "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx"') @when('I insert the route')