@@ -315,11 +315,8 @@ def test_resfinder():
315315 seen_genes += 1
316316
317317 # it reports these 4 agents separately (even if all on one gene)
318- assert (result .antimicrobial_agent , result .drug_class ) in [
319- ('ciprofloxacin' , 'quinolone' ),
320- ('nalidixic acid' , 'quinolone' ),
321- ('trimethoprim' , 'folate pathway antagonist' ),
322- ('chloramphenicol' , 'amphenicol' )]
318+ assert result .antimicrobial_agent == 'chloramphenicol, ciprofloxacin, nalidixic acid, trimethoprim'
319+ assert result .drug_class == 'amphenicol, folate pathway antagonist, quinolone'
323320
324321 # assert mandatory fields (5)
325322 assert result .gene_symbol == "OqxA"
@@ -329,7 +326,7 @@ def test_resfinder():
329326 assert result .reference_accession == "EU370913"
330327
331328 # optional fields (12)
332- assert result .predicted_phenotype == "ciprofloxacin, nalidixic acid, trimethoprim, chloramphenicol "
329+ assert result .predicted_phenotype == "antimicrobial resistance "
333330 assert result .predicted_phenotype_confidence_level == (
334331 "Must be in an operon with oqxB," +
335332 "phenotype differs based on genomic location of the operon PMID 25801572," +
@@ -374,7 +371,7 @@ def test_resfinder():
374371 # optional fields (14)
375372 assert result .antimicrobial_agent == "ampicillin"
376373 assert result .drug_class == "beta-lactam"
377- assert result .predicted_phenotype == "ampicillin "
374+ assert result .predicted_phenotype == "antimicrobial resistance "
378375 assert result .predicted_phenotype_confidence_level == (
379376 "The nineteen pbp5 mutations must be present simultaneously " +
380377 "for resistance phenotype. PMIDs: 25182648" )
@@ -414,7 +411,7 @@ def test_resfinder():
414411 assert result .genetic_variation_type is False # just to stop
415412
416413 # Check that we saw all
417- assert seen_genes == 4
414+ assert seen_genes == 1
418415 assert seen_variants == 1
419416
420417
0 commit comments