Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Unreleased
----------
- ⚠️ Backwards incompatible: - ``parsers.re`` now does a `fullmatch <https://docs.python.org/3/library/re.html#re.fullmatch>`_ instead of a partial match. This is to make it work just like the other parsers, since they don't ignore non-matching characters at the end of the string. `#539 <https://github.com/pytest-dev/pytest-bdd/pull/539>`_
- Add support for Scenarios and Scenario Outlines to have descriptions. `#600 <https://github.com/pytest-dev/pytest-bdd/pull/600>`_
- Add support for asterisks ( ``*`` ) as continuation steps. `#??? <https://github.com/pytest-dev/pytest-bdd/pull/???>`_

6.1.1
-----
Expand Down
1 change: 1 addition & 0 deletions src/pytest_bdd/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
# Continuation of the previously mentioned step type
("And ", None),
("But ", None),
("* ", None),
]

TYPES_WITH_DESCRIPTIONS = [types.FEATURE, types.SCENARIO, types.SCENARIO_OUTLINE]
Expand Down
10 changes: 10 additions & 0 deletions tests/feature/test_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ def test_steps(pytester):
And I append 3 to the list
Then foo should have value "foo"
But the list should be [1, 2, 3]

Given there is a list
When values appended via asterisks:
* I append 1 to the list
* I append 2 to the list
* I append 3 to the list
Then the list should be [1, 2, 3]
"""
),
)
Expand Down Expand Up @@ -65,6 +72,9 @@ def _(foo):
def _(results):
assert results == [1, 2, 3]

@when("values appended via asterisks:")
def _():
pass
"""
)
)
Expand Down