Preparing release 2.21.0

This commit is contained in:
Oleg Pidsadnyi 2018-04-04 16:13:29 +02:00
parent d1eaf99270
commit 5684b36532
6 changed files with 19 additions and 5 deletions

View File

@ -13,6 +13,7 @@ These people have contributed to `pytest-bdd`, in alphabetical order:
* `Andrey Makhnach <andrey.makhnach@gmail.com>`_ * `Andrey Makhnach <andrey.makhnach@gmail.com>`_
* `Aron Curzon <curzona@gmail.com>`_ * `Aron Curzon <curzona@gmail.com>`_
* `Dmitrijs Milajevs <dimazest@gmail.com>`_ * `Dmitrijs Milajevs <dimazest@gmail.com>`_
* `Dmitry Kolyagin <pauk-slon>`_
* `Florian Bruhin <me@the-compiler.org>`_ * `Florian Bruhin <me@the-compiler.org>`_
* `Floris Bruynooghe <flub@devork.be>`_ * `Floris Bruynooghe <flub@devork.be>`_
* `Harro van der Klauw <hvdklauw@gmail.com>`_ * `Harro van der Klauw <hvdklauw@gmail.com>`_

View File

@ -2,6 +2,12 @@ Changelog
========= =========
2.21.0
------
- Gherkin terminal reporter expanded format (pauk-slon)
2.20.0 2.20.0
------ ------

View File

@ -1150,6 +1150,14 @@ To enable gherkin-formatted output on terminal, use
py.test --gherkin-terminal-reporter py.test --gherkin-terminal-reporter
Terminal reporter supports expanded format as well
::
py.test --gherkin-terminal-reporter-expanded
Test code generation helpers Test code generation helpers
---------------------------- ----------------------------

View File

@ -3,6 +3,6 @@
from pytest_bdd.steps import given, when, then from pytest_bdd.steps import given, when, then
from pytest_bdd.scenario import scenario, scenarios from pytest_bdd.scenario import scenario, scenarios
__version__ = '2.20.0' __version__ = '2.21.0'
__all__ = [given.__name__, when.__name__, then.__name__, scenario.__name__, scenarios.__name__] __all__ = [given.__name__, when.__name__, then.__name__, scenario.__name__, scenarios.__name__]

View File

@ -123,7 +123,7 @@ def gherkin_scenario_outline(testdir):
Given there are <start> cucumbers Given there are <start> cucumbers
When I eat <eat> cucumbers When I eat <eat> cucumbers
Then I should have <left> cucumbers Then I should have <left> cucumbers
Examples: Examples:
| start | eat | left | | start | eat | left |
|{start}|{eat}|{left}| |{start}|{eat}|{left}|
@ -135,7 +135,7 @@ def gherkin_scenario_outline(testdir):
@given('there are <start> cucumbers') @given('there are <start> cucumbers')
def start_cucumbers(start): def start_cucumbers(start):
return start return start
@when('I eat <eat> cucumbers') @when('I eat <eat> cucumbers')
def eat_cucumbers(start_cucumbers, eat): def eat_cucumbers(start_cucumbers, eat):
pass pass

View File

@ -1,6 +1,5 @@
"""Test no strict gherkin for sections.""" """Test no strict gherkin for sections."""
import py
import pytest import pytest
from pytest_bdd import ( from pytest_bdd import (
@ -25,6 +24,7 @@ def test_background_no_strict_gherkin(request):
test(request) test(request)
def test_scenario_no_strict_gherkin(request): def test_scenario_no_strict_gherkin(request):
"""Test scenario no strict gherkin.""" """Test scenario no strict gherkin."""
@scenario( @scenario(
@ -56,4 +56,3 @@ def not_boolean(foo):
@when('foo has not a value "baz"') @when('foo has not a value "baz"')
def has_not_baz(foo): def has_not_baz(foo):
assert "baz" not in foo assert "baz" not in foo