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

Method test_serialization_byid

testing/test_collection.py:614–622  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

612 )
613
614 def test_serialization_byid(self, pytester: Pytester) -> None:
615 pytester.makepyfile("def test_func(): pass")
616 items, hookrec = pytester.inline_genitems()
617 assert len(items) == 1
618 (item,) = items
619 items2, hookrec = pytester.inline_genitems(item.nodeid)
620 (item2,) = items2
621 assert item2.name == item.name
622 assert item2.path == item.path
623
624 def test_find_byid_without_instance_parents(self, pytester: Pytester) -> None:
625 p = pytester.makepyfile(

Callers

nothing calls this directly

Calls 2

makepyfileMethod · 0.45
inline_genitemsMethod · 0.45

Tested by

no test coverage detected