Skip to content

Difficult to write tests that require children in specific year groups #1067

@thomasleese

Description

@thomasleese

At the moment, the children fixture returns a dictionary that maps a programme group to a list of children. This makes it difficult to write tests that require a child in a specific year group.

The specific example that I came across is I wanted to write a test that imports a child who is ineligible for a particular programme (in this case HPV). Therefore I needed a child who was in year groups 0 to 7, but that doesn't map to any programme, so I couldn't use children[programme].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions