Skip to content

Commit 6f4bb36

Browse files
committed
Forgot to install pre-commit!
1 parent ba33f18 commit 6f4bb36

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/pytest_bdd/gherkin_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def from_dict(cls, data: dict[str, Any]) -> Self:
116116
name=data.get("name"),
117117
table_header=Row.from_dict(data["tableHeader"]) if data.get("tableHeader") else None,
118118
table_body=[Row.from_dict(row) for row in data.get("tableBody", [])],
119-
tags=[Tag.from_dict(tag) for tag in data["tags"]]
119+
tags=[Tag.from_dict(tag) for tag in data["tags"]],
120120
)
121121

122122

src/pytest_bdd/scenario.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import pytest
2424
from _pytest.fixtures import FixtureDef, FixtureManager, FixtureRequest, call_fixture_func
25-
from pytest import warns, PytestUnknownMarkWarning
25+
from pytest import PytestUnknownMarkWarning, warns
2626
from typing_extensions import ParamSpec
2727

2828
from . import exceptions
@@ -314,8 +314,9 @@ def collect_example_parametrizations(
314314
example_marks = [pytest.mark.__getattr__(tag) for tag in _tags]
315315

316316
for context in examples.as_contexts() or [{}]:
317-
test_id = "-".join((str(example_id), *context.values())) if has_multiple_examples else "-".join(
318-
context.values())
317+
test_id = (
318+
"-".join((str(example_id), *context.values())) if has_multiple_examples else "-".join(context.values())
319+
)
319320
parametrizations.append(
320321
pytest.param(
321322
context,
@@ -326,6 +327,7 @@ def collect_example_parametrizations(
326327

327328
return parametrizations or None
328329

330+
329331
def scenario(
330332
feature_name: str,
331333
scenario_name: str,

tests/feature/test_outline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_multiple_outlined(pytester):
9595
| start | eat | left |
9696
| 12 | 5 | 7 |
9797
| 5 | 4 | 1 |
98-
98+
9999
@negative
100100
Examples: Negative results
101101
| start | eat | left |
@@ -113,7 +113,7 @@ def test_multiple_outlined(pytester):
113113
from pytest_bdd import scenarios
114114
115115
scenarios('outline_multi_example.feature')
116-
116+
117117
"""
118118
)
119119
)

tests/feature/test_tags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@ def test_tags_against_multiple_examples_tables(pytester):
236236
237237
Scenario Outline: Tags
238238
Given I have a <item>
239-
239+
240240
@food
241241
Examples: Food
242242
| item |
243243
| bun |
244244
| ice |
245-
245+
246246
@drink
247247
Examples: Drinks
248248
| item |

0 commit comments

Comments
 (0)