(self, request)
| 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 |
nothing calls this directly
no test coverage detected