Method
__init__
(
self,
fspath: None,
parent: nodes.Collector,
# NOTE: following args are unused:
config=None,
session=None,
nodeid=None,
path: Path | None = None,
)
Source from the content-addressed store, hash-verified
| 653 | """ |
| 654 | |
| 655 | def __init__( |
| 656 | self, |
| 657 | fspath: None, |
| 658 | parent: nodes.Collector, |
| 659 | # NOTE: following args are unused: |
| 660 | config=None, |
| 661 | session=None, |
| 662 | nodeid=None, |
| 663 | path: Path | None = None, |
| 664 | ) -> None: |
| 665 | # NOTE: Could be just the following, but kept as-is for compat. |
| 666 | # super().__init__(self, fspath, parent=parent) |
| 667 | session = parent.session |
| 668 | super().__init__( |
| 669 | fspath=fspath, |
| 670 | path=path, |
| 671 | parent=parent, |
| 672 | config=config, |
| 673 | session=session, |
| 674 | nodeid=nodeid, |
| 675 | ) |
| 676 | |
| 677 | def setup(self) -> None: |
| 678 | init_mod = importtestmodule(self.path / "__init__.py", self.config) |
Tested by
no test coverage detected