Skip to content

Commit

Permalink
Fix get_passed_failed
Browse files Browse the repository at this point in the history
Calling to_tests_overview on an empty PassedFailed crashes, because in
that case, get_passed_failed return a DataFrame of a different schema
  • Loading branch information
gruberma committed Jun 25, 2023
1 parent 524f716 commit 11605b9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions flapy/results_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,13 +962,6 @@ def get_passed_failed(
}
)

if len(junit_data) == 0:
return pd.DataFrame(
{
"Iteration": [self.p.name],
"Iteration_status": ["EMPTY"],
}
)
junit_data.insert(0, "Iteration", self.p.name)
junit_data.insert(1, "Project_Name", self.get_project_name())
junit_data.insert(2, "Project_URL", self.get_project_url())
Expand Down

0 comments on commit 11605b9

Please sign in to comment.