Skip to content

Commit

Permalink
Xfail Rinchi test on HTTP error
Browse files Browse the repository at this point in the history
  • Loading branch information
SGenheden committed Nov 21, 2022
1 parent 19ced79 commit df1b7a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_rinchi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys

import pytest
from requests.exceptions import HTTPError

from rxnutils.chem.rinchi.download_rinchi import (
main as download_rinchi,
Expand All @@ -16,6 +17,7 @@ def rinchi_download():


@pytest.mark.xfail(sys.platform not in PLATFORM2FOLDER, reason="Platform not supported")
@pytest.mark.xfail(raises=HTTPError)
def test_download_rinchi(mocker, tmpdir):
config = {
"download_folder": str(tmpdir),
Expand All @@ -29,6 +31,7 @@ def test_download_rinchi(mocker, tmpdir):


@pytest.mark.xfail(sys.platform not in PLATFORM2FOLDER, reason="Platform not supported")
@pytest.mark.xfail(raises=HTTPError)
def test_generate_rinchi(rinchi_download):
rsmi = (
"[ClH;D0;+0:1]>>"
Expand Down

0 comments on commit df1b7a0

Please sign in to comment.