MCPcopy
hub / github.com/pytest-dev/pytest / _sub_test_description

Method _sub_test_description

src/_pytest/subtests.py:88–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers 2

head_lineMethod · 0.95
pytest_report_teststatusFunction · 0.80

Calls 2

appendMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected