Skip to content

Commit

Permalink
support subclassing in name_repr
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperCraeghs committed Dec 16, 2024
1 parent a3100df commit efbd2d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/mlx/warnings/junit_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def check(self, content):

@property
def name_repr(self):
return "JUnit" if self.name == "junit" else self.name.capitalize()
return "JUnit" if self.name == "junit" else super().name_repr

@staticmethod
def prepare_tree(root_input):
Expand Down
4 changes: 0 additions & 4 deletions src/mlx/warnings/robot_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ def __init__(self, suite_name, *logging_args, check_suite_name=False):
def suite_name_repr(self):
return f"suite {self.suite_name!r}" if self.suite_name else "all test suites"

@property
def name_repr(self):
return self.name.replace("_sub", "").capitalize()

def _check_testcase(self, testcase):
"""Handles the check of a test case element by checking if the result is a failure/error.
Expand Down

0 comments on commit efbd2d3

Please sign in to comment.