Properly parse feature description. closes #144
This commit is contained in:
parent
8bbc4580a0
commit
7cda3caeef
|
@ -0,0 +1,12 @@
|
|||
Feature: Description
|
||||
|
||||
In order to achieve something
|
||||
I want something
|
||||
Because it will be cool
|
||||
|
||||
|
||||
Some description goes here.
|
||||
|
||||
Scenario: Description
|
||||
|
||||
Given I have a bar
|
|
@ -0,0 +1,21 @@
|
|||
"""Test descriptions."""
|
||||
from pytest_bdd import scenario
|
||||
|
||||
|
||||
def test_description(request):
|
||||
"""Test description for the feature."""
|
||||
@scenario(
|
||||
'description.feature',
|
||||
'Description'
|
||||
)
|
||||
def test():
|
||||
pass
|
||||
|
||||
assert test.__scenario__.feature.description == """In order to achieve something
|
||||
I want something
|
||||
Because it will be cool
|
||||
|
||||
|
||||
Some description goes here."""
|
||||
|
||||
test(request)
|
Loading…
Reference in New Issue