From 94cdca034e28fefc5cc4406249a521449f323527 Mon Sep 17 00:00:00 2001 From: haohangyan Date: Sun, 21 Jul 2024 20:49:16 -0400 Subject: [PATCH] Modified to adapt new data --- indra/tests/test_sources/test_dgi.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/indra/tests/test_sources/test_dgi.py b/indra/tests/test_sources/test_dgi.py index ba8a07f0b0..eae433f0f1 100644 --- a/indra/tests/test_sources/test_dgi.py +++ b/indra/tests/test_sources/test_dgi.py @@ -17,20 +17,19 @@ def test_dgi_processor(): """Test the DGI processor.""" df = pd.read_csv(TEST_FILE, sep='\t', usecols=USECOLS, dtype=str) + df = df[USECOLS] dp = process_df(df) statement = dp.statements[0] assert isinstance(statement, Inhibition) assert statement.obj.name == 'CDK7' assert statement.obj.db_refs['EGID'] == '1022' assert statement.obj.db_refs['HGNC'] == '1778' - assert statement.subj.name == \ - (r'N-(5-\{[(5-tert-butyl-1,3-oxazol-2-yl)methyl]sulfanyl\}-1,3-' - r'thiazol-2-yl)piperidine-4-carboxamide'), statement.subj.name - assert statement.subj.db_refs['CHEMBL'] == 'CHEMBL296468' + assert statement.subj.name == 'BMS-387032' + assert statement.subj.db_refs['IUPHAR.LIGAND'] == '5670' assert 1 == len(statement.evidence) evidence = statement.evidence[0] assert evidence.pmid is None - assert evidence.annotations == {'source': 'CancerCommons', + assert evidence.annotations == {'source': 'ChEMBL', 'interactions': 'inhibitor'}