| Total Complexity | 1 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import pytest |
||
| 2 | |||
| 3 | from mandos.cli import Commands |
||
| 4 | |||
| 5 | from .. import get_test_resource |
||
| 6 | |||
| 7 | |||
| 8 | class TestActivitySearch: |
||
| 9 | def test_find(self): |
||
| 10 | df, triples = Commands.binding(get_test_resource("inchis.txt")) |
||
| 11 | # TODO double-check |
||
| 12 | assert len(df) == 4 |
||
| 13 | assert len(triples) == 1 |
||
| 14 | assert triples[0].object_id == "CHEMBL2093872" |
||
| 15 | assert triples[0].compound_name.lower() == "alprazolam" |
||
| 16 | |||
| 17 | |||
| 18 | if __name__ == "__main__": |
||
| 19 | pytest.main() |
||
| 20 |