_pytest.runner module¶
basic collect and runtest protocol implementations
-
runtestprotocol
(item: Item, log: bool = True, nextitem: Optional[Item] = None) → List[_pytest.reports.TestReport][source]¶
-
_update_current_test_var
(item, when)[source]¶ Update
PYTEST_CURRENT_TEST
to reflect the current item and stage.If
when
is None, deletePYTEST_CURRENT_TEST
from the environment.
-
call_and_report
(item: Item, when: Literal[‘setup’, ‘call’, ‘teardown’], log: bool = True, **kwds)[source]¶
-
class
CallInfo
(result, excinfo: Optional[_pytest._code.code.ExceptionInfo], start, stop, when='Literal["setup", "call", "teardown"]')[source]¶ Bases:
object
Result/Exception info a function invocation.
-
when
¶ context of invocation
-
result
¶
-
classmethod
from_call
(func, when) → _pytest.runner.CallInfo[source]¶
-
-
pytest_make_collect_report
(collector: _pytest.nodes.Collector) → _pytest.reports.CollectReport[source]¶