File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,10 @@ def _(site):
323323
324324
325325def test_variable_reuse (pytester ):
326- """Test example parameter reuse."""
326+ """
327+ Test same example parameter name used for step args between calls
328+ doesn't redefine example arg value.
329+ """
327330
328331 pytester .makefile (
329332 ".feature" ,
@@ -358,18 +361,22 @@ def test_variable_reuse(pytester):
358361 def some_key_exists(key):
359362 print(f"some {key} exists")
360363
364+
361365 @when(parsers.parse('I print {css_id}'))
362366 def css_id(css_id):
363367 assert css_id in ('bar', 'bar2')
364368
369+
365370 @when(parsers.parse('I echo {css_id}'))
366371 def echo_val(css_id):
367372 assert css_id in ('bar', 'bar2')
368373
374+
369375 @when(parsers.re('I output "(?P<css_id>.+)"'))
370376 def i_output(css_id):
371377 assert css_id == 'some value'
372378
379+
373380 @then('finish testing')
374381 def i_output():
375382 print("finished")
You can’t perform that action at this time.
0 commit comments