(self, plugin: _PluggyPlugin)
| 1468 | return FuncFixtureInfo(argnames, initialnames, names_closure, arg2fixturedefs) |
| 1469 | |
| 1470 | def pytest_plugin_registered(self, plugin: _PluggyPlugin) -> None: |
| 1471 | nodeid = None |
| 1472 | try: |
| 1473 | p = absolutepath(plugin.__file__) # type: ignore[attr-defined] |
| 1474 | except AttributeError: |
| 1475 | pass |
| 1476 | else: |
| 1477 | # Construct the base nodeid which is later used to check |
| 1478 | # what fixtures are visible for particular tests (as denoted |
| 1479 | # by their test id). |
| 1480 | if p.name.startswith("conftest.py"): |
| 1481 | try: |
| 1482 | nodeid = str(p.parent.relative_to(self.config.rootpath)) |
| 1483 | except ValueError: |
| 1484 | nodeid = "" |
| 1485 | if nodeid == ".": |
| 1486 | nodeid = "" |
| 1487 | if os.sep != nodes.SEP: |
| 1488 | nodeid = nodeid.replace(os.sep, nodes.SEP) |
| 1489 | |
| 1490 | self.parsefactories(plugin, nodeid) |
| 1491 | |
| 1492 | def _getautousenames(self, nodeid: str) -> Iterator[str]: |
| 1493 | """Return the names of autouse fixtures applicable to nodeid.""" |
nothing calls this directly
no test coverage detected