Skip to content

Commit

Permalink
feat(anta): do not show parent test inputs in table output
Browse files Browse the repository at this point in the history
  • Loading branch information
mtache committed Dec 26, 2024
1 parent 7f9b0a8 commit e10ac11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anta/reporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def add_line(result: TestResult | AtomicTestResult, name: str | None = None) ->
test = name
state = self._color_result(result.result)
message = self._split_list_to_txt_list(result.messages) if len(result.messages) > 0 else ""
inputs = result.inputs.model_dump_json(indent=2, exclude={"result_overwrite", "filters"}) if result.inputs is not None else None
inputs = result.inputs.model_dump_json(indent=2) if isinstance(result, AtomicTestResult) and result.inputs is not None else None
table.add_row(
categories,
test,
Expand Down

0 comments on commit e10ac11

Please sign in to comment.