File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from MSMetaEnhancer .libs .converters .web import PubChem
66from frozendict import frozendict
77
8+ from MSMetaEnhancer .libs .utils .Errors import UnknownResponse
89from tests .utils import wrap_with_session
910
1011
1112INCHI = "InChI=1S/C11H8FNO3/c1-13-6-9(10(14)16-11(13)15)7-2-4-8(12)5-3-7/h2-6H,1H3"
1213
1314
1415@pytest .mark .dependency ()
16+ @pytest .mark .xfail (raises = UnknownResponse )
1517def test_service_available ():
1618 asyncio .run (wrap_with_session (PubChem , "inchi_to_inchikey" , [INCHI ]))
1719
@@ -72,6 +74,7 @@ def test_parse_attributes(response, expected):
7274 assert actual == expected
7375
7476
77+ @pytest .mark .dependency (depends = ["test_service_available" ])
7578def test_convert_inchikey_to_inchi ():
7679 inchikey = "OHCNQFYTLLGNOE-UHFFFAOYSA-N"
7780 expected = "InChI=1S/C5H13NSi/c1-7(2,3)6-4-5-6/h4-5H2,1-3H3"
You can’t perform that action at this time.
0 commit comments