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