From 1cc86cb4b71fe29b40115813836ca1277c1df859 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 13 Apr 2022 12:03:08 +0300 Subject: Implement test for parsing that fails * 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 --- quality_control/errors.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'quality_control/errors.py') diff --git a/quality_control/errors.py b/quality_control/errors.py index 99f9c97..758a300 100644 --- a/quality_control/errors.py +++ b/quality_control/errors.py @@ -4,10 +4,14 @@ class InvalidCellValue(Exception): """Raised when a function encounters an invalid value""" def __init__(self, *args): - Exception.__init__(self, *args) + super().__init__(self, *args) class InvalidHeaderValue(Exception): """Raised when a header contains values not in the reference file.""" def __init__(self, *args): - Exception.__init__(self, *args) + super().__init__(self, *args) + +class ParseError(Exception): + def __init(self, *args): + super().__init__(*args) -- cgit v1.2.3