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

Method xunit_setup_method_fixture

src/_pytest/python.py:880–888  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

878 name=f"_xunit_setup_method_fixture_{self.obj.__qualname__}",
879 )
880 def xunit_setup_method_fixture(self, request) -> Generator[None, None, None]:
881 method = request.function
882 if setup_method is not None:
883 func = getattr(self, setup_name)
884 _call_with_optional_argument(func, method)
885 yield
886 if teardown_method is not None:
887 func = getattr(self, teardown_name)
888 _call_with_optional_argument(func, method)
889
890 self.obj.__pytest_setup_method = xunit_setup_method_fixture
891

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected