Skip to content

Commit

Permalink
fixed tests for headers and fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kristyhoran committed Aug 7, 2023
1 parent e60e1ed commit d212c78
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tests/test_tbtamr.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,52 +188,52 @@ def test_check_output_file_profile_success():
"Species",
"Phylogenetic lineage",
'Predicted drug resistance',
"Rifampicin",
"Rifampicin - ResMech",
"Rifampicin - Interpretation",
"Rifampicin - Confidence",
"Isoniazid",
"Isoniazid - ResMech",
"Isoniazid - Interpretation",
"Isoniazid - Confidence",
"Pyrazinamide",
"Pyrazinamide - ResMech",
"Pyrazinamide - Interpretation",
"Pyrazinamide - Confidence",
"Ethambutol",
"Ethambutol - ResMech",
"Ethambutol - Interpretation",
"Ethambutol - Confidence",
"Moxifloxacin",
"Moxifloxacin - ResMech",
"Moxifloxacin - Interpretation",
"Moxifloxacin - Confidence",
"Amikacin",
"Amikacin - ResMech",
"Amikacin - Interpretation",
"Amikacin - Confidence",
"Cycloserine",
"Cycloserine - ResMech",
"Cycloserine - Interpretation",
"Cycloserine - Confidence",
"Ethionamide",
"Ethionamide - ResMech",
"Ethionamide - Interpretation",
"Ethionamide - Confidence",
"Para-aminosalicylic acid",
"Para-aminosalicylic acid - ResMech",
"Para-aminosalicylic acid - Interpretation",
"Para-aminosalicylic acid - Confidence",
"Kanamycin",
"Kanamycin - ResMech",
"Kanamycin - Interpretation",
"Kanamycin - Confidence",
"Streptomycin",
"Streptomycin - ResMech",
"Streptomycin - Interpretation",
"Streptomycin - Confidence",
"Capreomycin",
"Capreomycin - ResMech",
"Capreomycin - Interpretation",
"Capreomycin - Confidence",
"Clofazimine",
"Clofazimine - ResMech",
"Clofazimine - Interpretation",
"Clofazimine - Confidence",
"Delamanid",
"Delamanid - ResMech",
"Delamanid - Interpretation",
"Delamanid - Confidence",
"Bedaquiline",
"Bedaquiline - ResMech",
"Bedaquiline - Interpretation",
"Bedaquiline - Confidence",
"Linezolid",
"Linezolid - ResMech",
"Linezolid - Interpretation",
"Linezolid - Confidence",
"Quality",
Expand Down Expand Up @@ -391,7 +391,7 @@ def test_get_qual_fail_low_cov():
amr_obj = Inferrence(to_input)
amr_obj.logger = logging.getLogger(__name__)

assert amr_obj._check_quality(cov = 35, perc = 90) == 'Fail QC'
assert amr_obj._check_quality(cov = 35, perc = 90) == 'Failed: < 40x aligned coverage to reference genome'


def test_get_qual_fail_low_prop_mtb():
Expand All @@ -401,7 +401,7 @@ def test_get_qual_fail_low_prop_mtb():
amr_obj = Inferrence(to_input)
amr_obj.logger = logging.getLogger(__name__)

assert amr_obj._check_quality(cov = 50, perc = 79) == 'Fail QC'
assert amr_obj._check_quality(cov = 50, perc = 79) == 'Failed: < 80 % _M. tuberculosis_ reads in sample'

def test_get_qual_fail_both():

Expand All @@ -410,7 +410,7 @@ def test_get_qual_fail_both():
amr_obj = Inferrence(to_input)
amr_obj.logger = logging.getLogger(__name__)

assert amr_obj._check_quality(cov = 35, perc = 79) == 'Fail QC'
assert amr_obj._check_quality(cov = 35, perc = 79) == 'Failed: < 80 % _M. tuberculosis_ reads in sample'

def test_check_mutant_success():

Expand Down

0 comments on commit d212c78

Please sign in to comment.