Used by IPDoctestTextfile and IPDoctestItem to setup fixture information.
(doctest_item: IPDoctestItem)
| 704 | |
| 705 | |
| 706 | def _setup_fixtures(doctest_item: IPDoctestItem) -> FixtureRequest: |
| 707 | """Used by IPDoctestTextfile and IPDoctestItem to setup fixture information.""" |
| 708 | |
| 709 | def func() -> None: |
| 710 | pass |
| 711 | |
| 712 | doctest_item.funcargs = {} # type: ignore[attr-defined] |
| 713 | fm = doctest_item.session._fixturemanager |
| 714 | kwargs = {"node": doctest_item, "func": func, "cls": None} |
| 715 | if pytest_version <= (8, 0): |
| 716 | kwargs["funcargs"] = False |
| 717 | doctest_item._fixtureinfo = fm.getfixtureinfo( # type: ignore[attr-defined] |
| 718 | **kwargs |
| 719 | ) |
| 720 | fixture_request = FixtureRequest(doctest_item, _ispytest=True) |
| 721 | if pytest_version <= (8, 0): |
| 722 | fixture_request._fillfixtures() |
| 723 | return fixture_request |
| 724 | |
| 725 | |
| 726 | def _init_checker_class() -> Type["IPDoctestOutputChecker"]: |
no outgoing calls
no test coverage detected
searching dependent graphs…