Skip to content

Commit

Permalink
Fix ID fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed May 17, 2021
1 parent 983d576 commit e7bb294
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_indra_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@


def test_fix_id():
assert fix_id("EFO", "EFO:12345") == "12345"
assert fix_id("GO", "123") == "GO:0000123"
assert fix_id("CHEBI", "123") == "CHEBI:123"
assert fix_id("UP", "P12345-6") == "P12345"
assert fix_id("EFO", "EFO:12345") == ("EFO", "12345")
assert fix_id("GO", "123") == ("GO", "GO:0000123")
assert fix_id("CHEBI", "123") == ("CHEBI", "CHEBI:123")
assert fix_id("UP", "P12345-6") == ("UP", "P12345")
assert fix_id("UP", "SL-123") == ("UPLOC", "SL-123")

0 comments on commit e7bb294

Please sign in to comment.