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

Method __init__

doc/en/example/nonpython/conftest.py:21–23  ·  view source on GitHub ↗
(self, *, spec, **kwargs)

Source from the content-addressed store, hash-verified

19
20class YamlItem(pytest.Item):
21 def __init__(self, *, spec, **kwargs):
22 super().__init__(**kwargs)
23 self.spec = spec
24
25 def runtest(self):
26 for name, value in sorted(self.spec.items()):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected