Skip to content

Commit fc9adba

Browse files
committed
Blackify code
1 parent 4d99a5f commit fc9adba

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

pytest_bdd/scenario.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,12 @@ def scenario_wrapper(request):
198198

199199

200200
def scenario(
201-
feature_name, scenario_name, encoding="utf-8", example_converters=None, caller_module=None, features_base_dir=None,
201+
feature_name,
202+
scenario_name,
203+
encoding="utf-8",
204+
example_converters=None,
205+
caller_module=None,
206+
features_base_dir=None,
202207
):
203208
"""Scenario decorator.
204209

tests/feature/test_cucumber_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def test_passing_outline():
155155
"line": 12,
156156
"match": {"location": ""},
157157
"name": "a failing step",
158-
"result": {"error_message": OfType(string), "status": "failed", "duration": OfType(int),},
158+
"result": {"error_message": OfType(string), "status": "failed", "duration": OfType(int)},
159159
},
160160
],
161161
"tags": [{"name": "scenario-failing-tag", "line": 9}],

tests/feature/test_outline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_outline(request):
116116
result.stdout.fnmatch_lines(
117117
'*ScenarioExamplesNotValidError: Scenario "Outlined with wrong examples"*has not valid examples*',
118118
)
119-
result.stdout.fnmatch_lines("*should match set of example values [[]'eat', 'left', 'start', 'unknown_param'[]].*",)
119+
result.stdout.fnmatch_lines("*should match set of example values [[]'eat', 'left', 'start', 'unknown_param'[]].*")
120120

121121

122122
def test_wrong_vertical_examples_scenario(testdir):

tests/steps/test_steps.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def test_when_then(request):
4242

4343

4444
@pytest.mark.parametrize(
45-
("step", "keyword"), [("given", "Given"), ("when", "When"), ("then", "Then")],
45+
("step", "keyword"),
46+
[("given", "Given"), ("when", "When"), ("then", "Then")],
4647
)
4748
def test_preserve_decorator(testdir, step, keyword):
4849
"""Check that we preserve original function attributes after decorating it."""

0 commit comments

Comments
 (0)