diff --git a/src/mlx/warnings/junit_checker.py b/src/mlx/warnings/junit_checker.py index ae85ebe..80a7c94 100644 --- a/src/mlx/warnings/junit_checker.py +++ b/src/mlx/warnings/junit_checker.py @@ -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): diff --git a/src/mlx/warnings/robot_checker.py b/src/mlx/warnings/robot_checker.py index a88a464..4847fb2 100644 --- a/src/mlx/warnings/robot_checker.py +++ b/src/mlx/warnings/robot_checker.py @@ -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.