@@ -30,39 +30,29 @@ def test_description(pytester):
3030
3131 pytester .makepyfile (
3232 textwrap .dedent (
33- """\
34- import textwrap
35- from pytest_bdd import given, scenario
36-
37- @scenario("description.feature", "Description")
38- def test_description():
39- pass
33+ r'''
34+ import textwrap
35+ from pytest_bdd import given, scenario
4036
37+ @scenario("description.feature", "Description")
38+ def test_description():
39+ pass
4140
42- @given("I have a bar")
43- def _():
44- return "bar"
4541
46- def test_feature_description():
47- assert test_description.__scenario__.feature.description == textwrap.dedent(
48- \" \" \" \\
49- In order to achieve something
50- I want something
51- Because it will be cool
42+ @given("I have a bar")
43+ def _():
44+ return "bar"
5245
46+ def test_feature_description():
47+ assert test_description.__scenario__.feature.description == textwrap.dedent(
48+ "In order to achieve something\nI want something\nBecause it will be cool\n\n\nSome description goes here."
49+ )
5350
54- Some description goes here.\" \" \"
55- )
56-
57- def test_scenario_description():
58- assert test_description.__scenario__.description == textwrap.dedent(
59- \" \" \" \\
60- Also, the scenario can have a description.
61-
62- It goes here between the scenario name
63- and the first step.\" \" \"
64- )
65- """
51+ def test_scenario_description():
52+ assert test_description.__scenario__.description == textwrap.dedent(
53+ "Also, the scenario can have a description.\n\nIt goes here between the scenario name\nand the first step."""
54+ )
55+ '''
6656 )
6757 )
6858
0 commit comments