Skip to content

Commit

Permalink
resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
olegpidsadnyi committed Jun 21, 2016
1 parent 9952fb5 commit 1916f01
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/feature/test_no_scenario.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""Test no scenarios defined in the feature file."""

<<<<<<< HEAD
import py
=======
>>>>>>> 887dac1... Better error explanation for the steps defined outside of scenarios
import textwrap


Expand All @@ -15,7 +12,6 @@ def test_no_scenarios(testdir):
When bar
Then baz
"""), 'utf-8', ensure=True)
<<<<<<< HEAD
testdir.makepyfile(py.code.Source("""
from pytest_bdd import scenarios
Expand All @@ -25,16 +21,5 @@ def test_no_scenarios(testdir):
result.stdout.fnmatch_lines(
[
'*FeatureError: Step definition outside of a Scenario or a Background.*',
=======
testdir.makepyfile("""
from pytest_bdd import scenarios
scenarios('features')
""")
result = testdir.runpytest('-v', '-s')
result.stdout.fnmatch_lines(
[
'*pytest_bdd.exceptions.FeatureError: Step definition outside of a Scenario or a Background.*',
>>>>>>> 887dac1... Better error explanation for the steps defined outside of scenarios
],
)

0 comments on commit 1916f01

Please sign in to comment.