Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Dec 5, 2024
1 parent 150e079 commit aebadf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pytest_bdd/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class ScenarioReportDict(TypedDict):
name: str
line_number: int
tags: list[str]
description: str
feature: FeatureDict
rule: NotRequired[RuleDict]
failed: NotRequired[bool]
Expand Down Expand Up @@ -154,7 +155,7 @@ def serialize(self) -> ScenarioReportDict:
"name": scenario.name,
"line_number": scenario.line_number,
"tags": sorted(scenario.tags),
"description": scenario.description,
"description": scenario.description or "",
"feature": {
"keyword": feature.keyword,
"name": feature.name,
Expand Down

0 comments on commit aebadf0

Please sign in to comment.