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].
At the moment, the
childrenfixture 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].