Skip to content

Commit

Permalink
fixing shv tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kara Tsang committed Jan 2, 2024
1 parent c80307a commit 6eb0fc9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/test_shv.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_shv_01(self):
def test_shv_02(self):
"""
This test has a match for SHV-1 with a mutation at site 238 (G -> Y). This changes the
class to ESBL, so the mutation is included in the
class to ESBL.
"""
results = get_resistance_results(self.data_dir, 'test/test_shv/02.fasta', self.args,
self.res_headers, True)
Expand All @@ -64,8 +64,8 @@ def test_shv_03(self):

def test_shv_04(self):
"""
This test has a match for SHV-1 with a mutation at site 50 (G -> Y). This doesn't change
resistance and so won't be reported.
This test has a match for SHV-1 with a mutation at site 50 (G -> Y). This is not class-modifying
and so won't be reported.
"""
results = get_resistance_results(self.data_dir, 'test/test_shv/04.fasta', self.args,
self.res_headers, True)
Expand All @@ -83,7 +83,7 @@ def test_shv_05(self):

def test_shv_06(self):
"""
This test has SHV-29 plus an inhibition mutation.
This test has SHV-29 plus an beta-lactamase inhibitor resistant mutation.
"""
results = get_resistance_results(self.data_dir, 'test/test_shv/06.fasta', self.args,
self.res_headers, True)
Expand All @@ -92,7 +92,7 @@ def test_shv_06(self):

def test_shv_07(self):
"""
This test has SHV-1 with position 238 deleted. Since it's not in the omega loop, this isn't
This test has SHV-1 with position 238 deleted. Is not
reported and doesn't have an effect.
"""
results = get_resistance_results(self.data_dir, 'test/test_shv/07.fasta', self.args,
Expand All @@ -102,7 +102,7 @@ def test_shv_07(self):

def test_shv_08(self):
"""
This test has SHV-1 with a synonymous mutation in the omega loop (so not reported).
This test has SHV-1 with a synonymous mutation in the omega loop (not ESBL-conferring mutation).
"""
results = get_resistance_results(self.data_dir, 'test/test_shv/08.fasta', self.args,
self.res_headers, True)
Expand All @@ -111,11 +111,11 @@ def test_shv_08(self):

def test_shv_09(self):
"""
This test has SHV-1 with a nonsynonymous mutation in the omega loop (so it is reported).
This test has SHV-1 with a nonsynonymous mutation in the omega loop (reported but not ESBL-conferring mutation).
"""
results = get_resistance_results(self.data_dir, 'test/test_shv/09.fasta', self.args,
self.res_headers, True)
self.assertEqual(results['Bla_ESBL_acquired'], 'SHV-1* +174R')
self.assertEqual(results['Bla_chr'], 'SHV-1*')
self.assertEqual(results['SHV_mutations'], '174R;omega-loop=RWETELNEALRGDARD')

def test_bla_class_01(self):
Expand Down

0 comments on commit 6eb0fc9

Please sign in to comment.