Skip to content

Commit 782caa2

Browse files
committed
added xfail and another dependency
1 parent 2ae2390 commit 782caa2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_PubChem.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
from MSMetaEnhancer.libs.converters.web import PubChem
66
from frozendict import frozendict
77

8+
from MSMetaEnhancer.libs.utils.Errors import UnknownResponse
89
from tests.utils import wrap_with_session
910

1011

1112
INCHI = "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)
1517
def 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"])
7578
def 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"

0 commit comments

Comments
 (0)