| 671 | ) |
| 672 | |
| 673 | def __init__( |
| 674 | self, |
| 675 | name, |
| 676 | parent=None, |
| 677 | config: Optional[Config] = None, |
| 678 | session: Optional["Session"] = None, |
| 679 | nodeid: Optional[str] = None, |
| 680 | **kw, |
| 681 | ) -> None: |
| 682 | # The first two arguments are intentionally passed positionally, |
| 683 | # to keep plugins who define a node type which inherits from |
| 684 | # (pytest.Item, pytest.File) working (see issue #8435). |
| 685 | # They can be made kwargs when the deprecation above is done. |
| 686 | super().__init__( |
| 687 | name, |
| 688 | parent, |
| 689 | config=config, |
| 690 | session=session, |
| 691 | nodeid=nodeid, |
| 692 | **kw, |
| 693 | ) |
| 694 | self._report_sections: List[Tuple[str, str, str]] = [] |
| 695 | |
| 696 | #: A list of tuples (name, value) that holds user defined properties |
| 697 | #: for this test. |
| 698 | self.user_properties: List[Tuple[str, object]] = [] |
| 699 | |
| 700 | def runtest(self) -> None: |
| 701 | """Run the test case for this item. |