Skip to content

Commit 1bd6998

Browse files
committed
Remove unused code
1 parent d088c69 commit 1bd6998

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

pytest_bdd/hooks.py

-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ def pytest_bdd_step_error(request, feature, scenario, step, step_func, step_func
2727
"""Called when step function failed to execute."""
2828

2929

30-
def pytest_bdd_step_validation_error(request, feature, scenario, step, step_func, step_func_args, exception):
31-
"""Called when step failed to validate."""
32-
33-
3430
def pytest_bdd_step_func_lookup_error(request, feature, scenario, step, exception):
3531
"""Called when step lookup failed."""
3632

pytest_bdd/parser.py

-4
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,6 @@ def render(self, context: typing.Mapping[str, typing.Any]) -> "Scenario":
233233
]
234234
return Scenario(feature=self.feature, name=self.name, line_number=self.line_number, steps=steps, tags=self.tags)
235235

236-
def validate(self):
237-
"""Validate the scenario."""
238-
pass
239-
240236

241237
class Scenario:
242238

pytest_bdd/scenario.py

-3
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,6 @@ def scenario(feature_name: str, scenario_name: str, encoding: str = "utf-8", fea
234234
f'Scenario "{scenario_name}" in feature "{feature_name}" in {feature.filename} is not found.'
235235
)
236236

237-
# Validate the scenario
238-
scenario.validate()
239-
240237
return _get_scenario_decorator(
241238
feature=feature, feature_name=feature_name, templated_scenario=scenario, scenario_name=scenario_name
242239
)

0 commit comments

Comments
 (0)