| Conditions | 1 | 
| Total Lines | 22 | 
| Code Lines | 20 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | import pytest | ||
| 12 | def test_find(self): | ||
| 13 |         df, triples = Commands.trials(get_test_resource("inchis.txt")) | ||
| 14 | assert len(df) == 6 | ||
| 15 | assert len(triples) == 6 | ||
| 16 |         assert {t.compound_name.lower() for t in triples} == {"alprazolam"} | ||
| 17 |         assert {t.object_id for t in triples} == { | ||
| 18 | "D012559", | ||
| 19 | "D016584", | ||
| 20 | "D003704", | ||
| 21 | "D001008", | ||
| 22 | "D001007", | ||
| 23 | "D003866", | ||
| 24 | } | ||
| 25 |         assert {t.object_name.lower() for t in triples} == { | ||
| 26 | "schizophrenia", | ||
| 27 | "panic disorder", | ||
| 28 | "dementia", | ||
| 29 | "anxiety", | ||
| 30 | "depressive disorder", | ||
| 31 | "anxiety disorders", | ||
| 32 | } | ||
| 33 |         assert {t.predicate for t in triples} == {"phase-4 indication", "phase-3 indication"} | ||
| 34 | |||
| 49 |