File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ def test_description(pytester):
1919 Some description goes here.
2020
2121 Scenario: Description
22+
23+ Also, the scenario can have a description.
24+
25+ It goes here between the scenario name
26+ and the first step.
2227 Given I have a bar
2328 """
2429 ),
@@ -39,7 +44,7 @@ def test_description():
3944 def _():
4045 return "bar"
4146
42- def test_scenario_description ():
47+ def test_feature_description ():
4348 assert test_description.__scenario__.feature.description == textwrap.dedent(
4449 \" \" \" \\
4550 In order to achieve something
@@ -49,9 +54,18 @@ def test_scenario_description():
4954
5055 Some description goes here.\" \" \"
5156 )
57+
58+ def test_scenario_description():
59+ assert test_description.__scenario__.description == textwrap.dedent(
60+ \" \" \" \\
61+ Also, the scenario can have a description.
62+
63+ It goes here between the scenario name
64+ and the first step.\" \" \"
65+ )
5266 """
5367 )
5468 )
5569
5670 result = pytester .runpytest ()
57- result .assert_outcomes (passed = 2 )
71+ result .assert_outcomes (passed = 3 )
You can’t perform that action at this time.
0 commit comments