Total Complexity | 1 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import pytest |
||
2 | |||
3 | from mandos.model.mappings import Mappings |
||
4 | |||
5 | |||
6 | class TestMappings: |
||
7 | def test(self): |
||
8 | mp = Mappings.from_resource("@targets_neuro.regexes") |
||
9 | assert mp.get("Dopamine D3 receptor") == ["Dopamine 2/3/4 receptor", "D_{2/3/4}"] |
||
10 | assert mp.get("Cytochrome P450 2A6") == ["Cytochrome P450 2", "CYP2"] |
||
11 | |||
12 | |||
13 | if __name__ == "__main__": |
||
14 | pytest.main() |
||
15 |