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

Method xunit_setup_class_fixture

src/_pytest/python.py:842–849  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

840 name=f"_xunit_setup_class_fixture_{self.obj.__qualname__}",
841 )
842 def xunit_setup_class_fixture(cls) -> Generator[None, None, None]:
843 if setup_class is not None:
844 func = getimfunc(setup_class)
845 _call_with_optional_argument(func, self.obj)
846 yield
847 if teardown_class is not None:
848 func = getimfunc(teardown_class)
849 _call_with_optional_argument(func, self.obj)
850
851 self.obj.__pytest_setup_class = xunit_setup_class_fixture
852

Callers

nothing calls this directly

Calls 2

getimfuncFunction · 0.90

Tested by

no test coverage detected