Created
March 5, 2016 20:08
-
-
Save curzona/a56db75159e278e1ff2b to your computer and use it in GitHub Desktop.
pytest-bdd indentation issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Showing off behave | |
Scenario: Run a mind bogglingly complex test | |
Given we have behave installed | |
When we implement 5 tests | |
Then behave will test them for us! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curzona@curzona-desktop:~/Desktop/hello_pycharm_behave/pytest-bdd$ py.test --generate-missing --feature=example.feature | |
========================================== test session starts =========================================== | |
platform linux2 -- Python 2.7.9 -- py-1.4.30 -- pytest-2.7.2 | |
rootdir: /home/curzona/Desktop/hello_pycharm_behave/pytest-bdd, inifile: | |
plugins: repeater, cov, xdist, bdd | |
collected 2 items | |
Step Given "we have behave installed | |
When we implement 5 tests | |
Then behave will test them for us!" is not defined in the scenario "Run a mind bogglingly complex test" in the feature "Showing off behave" in the file /home/curzona/Desktop/hello_pycharm_behave/pytest-bdd/example.feature:4 | |
---------------------------------------------------------------------------------------------------------- | |
Please place the code above to the test file(s): | |
@given('we have behave installed | |
When we implement 5 tests | |
Then behave will test them for us!') | |
def we_have_behave_installedwhen_we_implement_5_teststhen_behave_will_test_them_for_us(): | |
"""we have behave installed | |
When we implement 5 tests | |
Then behave will test them for us!.""" | |
============================================ in 0.02 seconds ============================================ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment