Skip to content

Instantly share code, notes, and snippets.

@mcepl
Created June 19, 2014 09:31
Show Gist options
  • Save mcepl/b57d616ba4e9b238853d to your computer and use it in GitHub Desktop.
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)
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
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