Add missing unit tests for getValidUploads function
Opened this issue · 0 comments
as1729 commented
See #470
An existing branch and draft pull requests already for this issue. The goal is to complete this draft PR and get it ready for review with all tests passing.
The cases needed to be tested are:
- When an upload was first validated and subsequently invalidated then it should be ignored.
- When an upload was first invalid and subsequently became valid then it should be included.
- When an upload has multiple valid
UploadValidation
records it should be included. - When an upload only has a single valid
UploadValidation
record it should be included. - When an upload only has a single invalid
UploadValidation
record it should be ignored.