aboutsummaryrefslogtreecommitdiff
path: root/quality_control/errors.py
AgeCommit message (Collapse)Author
2022-06-28Check for inconsistent columnsFrederick Muriuki Muriithi
The number columns in each contents line should be equal to the nember of columns in the header line.
2022-05-18Remove obsoleted code. Fix linting errors.Frederick Muriuki Muriithi
Remove the old code that relied on exceptions to parse errors in the uploaded files.
2022-05-18Simplify slot names and fix namedtuple type nameFrederick Muriuki Muriithi
- replace `line_number` with `line` and `column_number` with `column` to save on slot name lengths. - Fix the type name for the `DuplicateHeading` namedtuple type
2022-05-18Return errors when found or None otherwiseFrederick Muriuki Muriithi
This commit adds a number of functions that return the error object when an error is found, or `None` otherwise. It avoids the use of exceptions as control flow constructs.
2022-04-25Call parsing function. Fix a few issues.Frederick Muriuki Muriithi
* qc_app/entry.py: Pass filetype onward to parsing endpoint * qc_app/parse.py: Call the function(s) necessary to parse a file * quality_control/errors.py: Fix argument passing to super class
2022-04-20Fix linting issuesFrederick Muriuki Muriithi
2022-04-13Add test for duplicate headersFrederick Muriuki Muriithi
2022-04-13Implement test for parsing that failsFrederick Muriuki Muriithi
* Improve tests that ensure parsing fails in case the file has errors * Add strains.csv file * Implement minimum viable functionality that passes the implemented tests
2022-04-13Update Exception nameFrederick Muriuki Muriithi
Change the exception name to be more descriptive.
2022-04-11Add tests for headersFrederick Muriuki Muriithi
* Add tests to check for validity of the headers * Add stubs for the tests
2022-04-11Implement tests and stubs for functions under testFrederick Muriuki Muriithi