(self)
| 86 | return f"{domain} {self._sub_test_description()}" |
| 87 | |
| 88 | def _sub_test_description(self) -> str: |
| 89 | parts = [] |
| 90 | if self.context.msg is not None: |
| 91 | parts.append(f"[{self.context.msg}]") |
| 92 | if self.context.kwargs: |
| 93 | params_desc = ", ".join( |
| 94 | f"{k}={v}" for (k, v) in self.context.kwargs.items() |
| 95 | ) |
| 96 | parts.append(f"({params_desc})") |
| 97 | return " ".join(parts) or "(<subtest>)" |
| 98 | |
| 99 | def _to_json(self) -> dict[str, Any]: |
| 100 | data = super()._to_json() |
no test coverage detected