Created
June 19, 2014 09:31
-
-
Save mcepl/b57d616ba4e9b238853d to your computer and use it in GitHub Desktop.
Most simple behave testing setup (according to https://pythonhosted.org/behave/tutorial.html)
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
from behave import * | |
@given('we have behave installed') | |
def step_impl(context): | |
pass | |
@when('we implement a test') | |
def step_impl(context): | |
assert True is not False | |
@then('behave will test it for us!') | |
def step_impl(context): | |
assert context.failed is False |
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 simple test | |
Given we have behave installed | |
when we implement a test | |
then behave will test it for us! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment