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

Method test_repr_produces_actual_test_id

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

Source from the content-addressed store, hash-verified

383 assert f1 != f2
384
385 def test_repr_produces_actual_test_id(self, pytester: Pytester) -> None:
386 f = self.make_function(
387 pytester, name=r"test[\xe5]", callobj=self.test_repr_produces_actual_test_id
388 )
389 assert repr(f) == r"<Function test[\xe5]>"
390
391 def test_issue197_parametrize_emptyset(self, pytester: Pytester) -> None:
392 pytester.makepyfile(

Callers

nothing calls this directly

Calls 1

make_functionMethod · 0.95

Tested by

no test coverage detected