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):
19
19
Some description goes here.
20
20
21
21
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.
22
27
Given I have a bar
23
28
"""
24
29
),
@@ -39,7 +44,7 @@ def test_description():
39
44
def _():
40
45
return "bar"
41
46
42
- def test_scenario_description ():
47
+ def test_feature_description ():
43
48
assert test_description.__scenario__.feature.description == textwrap.dedent(
44
49
\" \" \" \\
45
50
In order to achieve something
@@ -49,9 +54,18 @@ def test_scenario_description():
49
54
50
55
Some description goes here.\" \" \"
51
56
)
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
+ )
52
66
"""
53
67
)
54
68
)
55
69
56
70
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