Skip to content

Add test cases for the validation script #22

@TommiLindfors

Description

@TommiLindfors

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

  1. Look at tests/ to see the existing test structure
  2. Create test YAML files with intentional errors (missing required fields, wrong types, invalid IDs)
  3. Add test cases that verify validate.py rejects these invalid files
  4. Add test cases that verify valid files pass
  5. Run tests to make sure they pass

Time estimate

~30 minutes

Skills needed

Basic Python and YAML knowledge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions