Commit f3a4e02f authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

do not crash if there are now CIM tests

parent fcbc4386
......@@ -10,6 +10,10 @@ class YamlFile(pytest.File):
def collect(self):
import yaml # we need a yaml parser, e.g. PyYAML
raw = yaml.safe_load(self.fspath.open())
if not raw:
return
for name, spec in sorted(raw.items()):
yield YamlItem(name, self, spec)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment