about summary refs log tree commit diff
path: root/tests/uploader/scripts/genotypes
AgeCommit message (Collapse)Author
5 daysTest: cover non-negative numeric position validationFrederick Muriuki Muriithi
Add fixtures and tests for negative and non-numeric cM/Mb values in both orientations, confirm non-negative integers/floats are accepted, and cover job-error extraction for invalid positions. Co-authored-by: pi coding agent <pi@pi.dev>
5 daysTest: cover early validation of headings and data valuesFrederick Muriuki Muriithi
Update fixtures to cover empty/missing-value headings (header row, transposed row labels, marker headings), marker values, metadata values and empty sample values. Add Stage 01 tests for each case and update the job-error extraction expectations. Co-authored-by: pi coding agent <pi@pi.dev>
6 daysTest: scope the genotype description to pre-matrix commentsFrederick Muriuki Muriithi
Cover comments before and after the header/markers row (untransposed and transposed), the chunk-merge behaviour, and single- vs multi-processed equivalence when a mid-file comment lands in a later chunk. Co-authored-by: pi coding agent <pi@pi.dev>
13 daysMove genotype data types into the uploader.genotypes packagepi coding agent
Move `uploader/scripts/genotypes/types.py` to `uploader/genotypes/types.py` so application code can use `FileStats` and friends without importing from `uploader.scripts`. Update the collector script and tests to the new location.
13 daysTest: cover collecting comment lines into the file descriptionpi coding agent
Add tests for cleaning comment lines (strip the comment character and surrounding whitespace), honouring a configured comment character, exposing the description on FileStats, and preserving comment order when merging chunks.
13 daysRe-organise the tests.Frederick Muriuki Muriithi