Called by pytest on each of the object returned from pytest_pycollect_makeitem
(self)
| 731 | |
| 732 | class DataSuiteCollector(pytest.Class): |
| 733 | def collect(self) -> Iterator[DataFileCollector]: |
| 734 | """Called by pytest on each of the object returned from pytest_pycollect_makeitem""" |
| 735 | |
| 736 | # obj is the object for which pytest_pycollect_makeitem returned self. |
| 737 | suite: DataSuite = self.obj |
| 738 | |
| 739 | assert os.path.isdir( |
| 740 | suite.data_prefix |
| 741 | ), f"Test data prefix ({suite.data_prefix}) not set correctly" |
| 742 | |
| 743 | for data_file in suite.files: |
| 744 | yield DataFileCollector.from_parent(parent=self, name=data_file) |
| 745 | |
| 746 | |
| 747 | class DataFileFix(NamedTuple): |
nothing calls this directly
no test coverage detected