forked from test_framework/pytest-bdd
rename package in README
This commit is contained in:
parent
2156385964
commit
3013962227
|
@ -2,10 +2,10 @@ BDD library for the py.test runner
|
|||
===================================
|
||||
|
||||
|
||||
Install pytestbdd
|
||||
Install pytest-bdd
|
||||
=================
|
||||
|
||||
pip install pytestbdd
|
||||
pip install pytest-bdd
|
||||
|
||||
|
||||
Example
|
||||
|
@ -24,7 +24,7 @@ publish_article.feature:
|
|||
|
||||
test_publish_article.py:
|
||||
|
||||
from pytestbdd import scenario, given, when, then
|
||||
from pytest_bdd import scenario, given, when, then
|
||||
|
||||
test_publish = scenario('publish_article.feature', 'Publishing the article')
|
||||
|
||||
|
@ -51,4 +51,4 @@ test_publish_article.py:
|
|||
@then('And the article should be published')
|
||||
def article_is_published(article):
|
||||
article.refresh() # Refresh the object in the SQLAlchemy session
|
||||
assert article.is_published
|
||||
assert article.is_published
|
||||
|
|
Loading…
Reference in New Issue