| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import pytest |
||
| 9 | def test_find(self): |
||
| 10 | df, triples = Commands.search_for(What.atc, get_test_resource("inchis.txt"), None) |
||
| 11 | assert len(df) == 2 |
||
| 12 | assert len(triples) == 2 |
||
| 13 | assert triples[0].compound_name.lower() == "alprazolam" |
||
| 14 | assert triples[0].object_name == "ANXIOLYTICS" |
||
| 15 | assert triples[0].object_id == "N05B" |
||
| 16 | assert triples[1].object_name == "Benzodiazepine derivatives" |
||
| 17 | assert triples[1].object_id == "N05BA" |
||
| 18 | pass |
||
| 19 | |||
| 23 |