Skip to content

Commit c7189fd

Browse files
authored
Make clearer what the test is asserting
1 parent 6c4391a commit c7189fd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/feature/test_outline.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,10 @@ def _(site):
323323

324324

325325
def 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")

0 commit comments

Comments
 (0)