MCPcopy
hub / github.com/pytest-dev/pytest / xunit_setup_class_fixture

Method xunit_setup_class_fixture

src/_pytest/python.py:800–808  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

798 return
799
800 def xunit_setup_class_fixture(request) -> Generator[None]:
801 cls = request.cls
802 if setup_class is not None:
803 func = getimfunc(setup_class)
804 _call_with_optional_argument(func, cls)
805 yield
806 if teardown_class is not None:
807 func = getimfunc(teardown_class)
808 _call_with_optional_argument(func, cls)
809
810 fixtures.register_fixture(
811 # Use a unique name to speed up lookup.

Callers

nothing calls this directly

Calls 2

getimfuncFunction · 0.90

Tested by

no test coverage detected