Skip to content

Commit

Permalink
fix pipenv run type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Konboi committed Jan 12, 2024
1 parent 98c74b8 commit 62801f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions launchable/test_runners/cucumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,17 +314,17 @@ def __init__(self, duration_nano_sec: int, statuses: List[str], stderr: List[str


def _parse_hook_from_element(element: Dict[str, List]) -> TestCaseHookInfo:
duration_nano_sec = 0
statuses = []
stderr = []
duration_nano_sec: int = 0
statuses: List[str] = []
stderr: List[str] = []

def parse_steps(step: Dict[str, List]):
def parse_steps(step: Dict[str, Dict]):
result = step.get("result", None)
if result:
nonlocal duration_nano_sec

duration_nano_sec += result.get("duration", 0)
statuses.append(result.get("status"))
if result.get("status", None):
statuses.append(result["status"])
if result.get("error_message", None):
stderr.append(result["error_message"])

Expand Down

0 comments on commit 62801f2

Please sign in to comment.