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

Method runtest

doc/en/example/nonpython/conftest.py:25–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 self.spec = spec
24
25 def runtest(self):
26 for name, value in sorted(self.spec.items()):
27 # Some custom test execution (dumb example follows).
28 if name != value:
29 raise YamlException(self, name, value)
30
31 def repr_failure(self, excinfo):
32 """Called when self.runtest() raises an exception."""

Callers

nothing calls this directly

Calls 1

YamlExceptionClass · 0.85

Tested by

no test coverage detected