Skip to content

Commit

Permalink
fix(anta.reporter): Define constants to manage table headers - sonarc…
Browse files Browse the repository at this point in the history
…loud
  • Loading branch information
titom73 committed Jul 5, 2024
1 parent 4e16158 commit 5fefdce
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions anta/reporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Headers(BaseModel):
"""Headers for the table report."""

device: str = "Device"
test_case: str = "Test Case"
test_case: str = "Test Name"
number_of_success: str = "# of success"
number_of_failure: str = "# of failure"
number_of_skipped: str = "# of skipped"
Expand Down Expand Up @@ -75,9 +75,6 @@ def _build_headers(self, headers: list[str], table: Table) -> Table:
for idx, header in enumerate(headers):
if idx == 0:
table.add_column(header, justify="left", style=RICH_COLOR_PALETTE.HEADER, no_wrap=True)
elif header == "Test Name":
# We always want the full test name
table.add_column(header, justify="left", no_wrap=True)
else:
table.add_column(header, justify="left")
return table
Expand Down

0 comments on commit 5fefdce

Please sign in to comment.