MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_repr_produces_actual_test_id

Method test_repr_produces_actual_test_id

testing/python/collect.py:317–321  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

315 assert f1 != f2
316
317 def test_repr_produces_actual_test_id(self, pytester: Pytester) -> None:
318 f = self.make_function(
319 pytester, name=r"test[\xe5]", callobj=self.test_repr_produces_actual_test_id
320 )
321 assert repr(f) == r"<Function test[\xe5]>"
322
323 def test_issue197_parametrize_emptyset(self, pytester: Pytester) -> None:
324 pytester.makepyfile(

Callers

nothing calls this directly

Calls 1

make_functionMethod · 0.95

Tested by

no test coverage detected