(self)
| 11 | |
| 12 | class YamlFile(pytest.File): |
| 13 | def collect(self): |
| 14 | class="cm"># We need a yaml parser, e.g. PyYAML. |
| 15 | import yaml |
| 16 | |
| 17 | raw = yaml.safe_load(self.path.open(encoding=class="st">"utf-8")) |
| 18 | for name, spec in sorted(raw.items()): |
| 19 | yield YamlItem.from_parent(self, name=name, spec=spec) |
| 20 | |
| 21 | |
| 22 | class YamlItem(pytest.Item): |
nothing calls this directly
no test coverage detected