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

Method xunit_setup_function_fixture

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

Source from the content-addressed store, hash-verified

615 return
616
617 def xunit_setup_function_fixture(request) -> Generator[None]:
618 if request.instance is not None:
619 # in this case we are bound to an instance, so we need to let
620 # setup_method handle this
621 yield
622 return
623 function = request.function
624 if setup_function is not None:
625 _call_with_optional_argument(setup_function, function)
626 yield
627 if teardown_function is not None:
628 _call_with_optional_argument(teardown_function, function)
629
630 fixtures.register_fixture(
631 # Use a unique name to speed up lookup.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected