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

Function test_report_extra_parameters

testing/test_runner.py:469–473  ·  view source on GitHub ↗
(reporttype: Type[reports.BaseReport])

Source from the content-addressed store, hash-verified

467 "reporttype", reporttypes, ids=[x.__name__ for x in reporttypes]
468)
469def test_report_extra_parameters(reporttype: Type[reports.BaseReport]) -> None:
470 args = list(inspect.signature(reporttype.__init__).parameters.keys())[1:]
471 basekw: Dict[str, List[object]] = dict.fromkeys(args, [])
472 report = reporttype(newthing=1, **basekw)
473 assert report.newthing == 1
474
475
476def test_callinfo() -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected