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

Method xunit_setup_method_fixture

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

Source from the content-addressed store, hash-verified

831 return
832
833 def xunit_setup_method_fixture(request) -> Generator[None]:
834 instance = request.instance
835 method = request.function
836 if setup_method is not None:
837 func = getattr(instance, setup_name)
838 _call_with_optional_argument(func, method)
839 yield
840 if teardown_method is not None:
841 func = getattr(instance, teardown_name)
842 _call_with_optional_argument(func, method)
843
844 fixtures.register_fixture(
845 # Use a unique name to speed up lookup.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected