Skip to content

Commit

Permalink
TST Test specific case where entry has multiple parents
Browse files Browse the repository at this point in the history
  • Loading branch information
luispedro committed Jun 24, 2024
1 parent 3394a82 commit e4a7df4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_arg_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,11 @@ def test_streptogramin_mixture():
quinupristin_dalfopristin = _assert_aro_name('ARO:3004022', 'quinupristin-dalfopristin')

streptogramin_antibiotic = _assert_aro_name('ARO:0000026', 'streptogramin antibiotic')
assert drugs_to_drug_classes([quinupristin_dalfopristin]) == [streptogramin_antibiotic]
assert drugs_to_drug_classes([quinupristin_dalfopristin]) == [streptogramin_antibiotic]


def test_multiple_parents():
# ARO:3000130 has multiple parents
edeine_A = _assert_aro_name('ARO:3000130', 'edeine A')
assert drugs_to_drug_classes([edeine_A]) == [_assert_aro_name('ARO:3000053', 'peptide antibiotic')]

0 comments on commit e4a7df4

Please sign in to comment.