Skip to content

Commit

Permalink
ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Nov 17, 2023
1 parent 832068d commit 272ea4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/test_disease_indication.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def test_normalize_disease(is_test_env: bool, db: Database):
# set up normalizer
os.environ["DISEASE_DYNAMO_TABLE"] = "disease_normalizer_therapy_test"
chembl = ChEMBL(db)
chembl.disease_normalizer.db.drop_db()
chembl.disease_normalizer.db.initialize_db()
chembl.disease_normalizer.db.add_source_metadata(
DiseaseSourceName.MONDO,
DiseaseSourceMeta(
Expand All @@ -47,5 +49,6 @@ def test_normalize_disease(is_test_env: bool, db: Database):
},
DiseaseSourceName.MONDO,
)
chembl.disease_normalizer.db.complete_write_transaction()
result = chembl._normalize_disease("mondo:0700110")
assert result == "mondo:0700110"

0 comments on commit 272ea4b

Please sign in to comment.