File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -334,9 +334,9 @@ def test_variable_reuse(pytester):
334
334
"""\
335
335
Feature: Example parameters reuse
336
336
Scenario Outline: Check for example parameter re-use
337
- Given I get <param>
338
- When I set param to "other"
339
- Then I check <param>
337
+ Given the param is initially set from the example table as <param>
338
+ When a step arg of the same name is set to "other"
339
+ Then the param is still set from the example table as <param>
340
340
341
341
Examples:
342
342
| param |
@@ -355,17 +355,17 @@ def test_variable_reuse(pytester):
355
355
scenarios('outline.feature')
356
356
357
357
358
- @given(parsers.parse('I get {param}'))
358
+ @given(parsers.parse('the param is initially set from the example table as {param}'))
359
359
def _(param):
360
360
dump_obj(("param1", param))
361
361
362
362
363
- @when(parsers.re('I set param to "(?P<param>.+)"'))
363
+ @when(parsers.re('a step arg of the same name is set to "(?P<param>.+)"'))
364
364
def _(param):
365
365
dump_obj(("param2", param))
366
366
367
367
368
- @then(parsers.parse('I check {param}'))
368
+ @then(parsers.parse('the param is still set from the example table as {param}'))
369
369
def _(param):
370
370
dump_obj(("param3", param))
371
371
You can’t perform that action at this time.
0 commit comments