(self, argname: str)
| 592 | raise FixtureLookupError(None, self, msg) |
| 593 | |
| 594 | def _raise_teardown_lookup_error(self, argname: str) -> NoReturn: |
| 595 | msg = ( |
| 596 | f'The fixture value for "{argname}" is not available during teardown ' |
| 597 | "because it was not previously requested.\n" |
| 598 | "Only fixtures that were already active can be retrieved during teardown.\n" |
| 599 | "Request the fixture before teardown begins by declaring it in the fixture " |
| 600 | "signature or by calling request.getfixturevalue() before the fixture yields." |
| 601 | ) |
| 602 | raise FixtureLookupError(argname, self, msg) |
| 603 | |
| 604 | def getfixturevalue(self, argname: str) -> Any: |
| 605 | """Dynamically run a named fixture function. |
no test coverage detected