What needs doing
Our scripts/validate.py validates YAML data against JSON Schemas, but we need test cases to make sure it catches errors correctly.
Steps
- Look at
tests/ to see the existing test structure
- Create test YAML files with intentional errors (missing required fields, wrong types, invalid IDs)
- Add test cases that verify
validate.py rejects these invalid files
- Add test cases that verify valid files pass
- Run tests to make sure they pass
Time estimate
~30 minutes
Skills needed
Basic Python and YAML knowledge.
What needs doing
Our
scripts/validate.pyvalidates YAML data against JSON Schemas, but we need test cases to make sure it catches errors correctly.Steps
tests/to see the existing test structurevalidate.pyrejects these invalid filesTime estimate
~30 minutes
Skills needed
Basic Python and YAML knowledge.