Properly parse feature description. closes #144

This commit is contained in:
Anatoly Bubenkov 2015-08-31 10:32:23 +02:00
parent 8bbc4580a0
commit 7cda3caeef
2 changed files with 33 additions and 0 deletions

View File

@ -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

View File

@ -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)