| Conditions | 1 |
| Total Lines | 7 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import pytest |
||
| 10 | def test_find(self): |
||
| 11 | df, triples = Commands.go_search(get_test_resource("inchis.txt"), GoType.function) |
||
| 12 | assert len(df) == 20 |
||
| 13 | assert len(triples) == 20 |
||
| 14 | # TODO not very complete |
||
| 15 | assert {t.compound_name.lower() for t in triples} == {"alprazolam"} |
||
| 16 | assert {t.predicate for t in triples} == {"has GO function term"} |
||
| 17 | |||
| 21 |