Commit ee986a29 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

skip more tests if remote resources unavailable

parent 7c2f58e4
Pipeline #42980 failed with stages
in 11 minutes and 6 seconds
......@@ -3,7 +3,7 @@ iPPI-DB unit tests
import json
import re
from ssl import SSLError
import requests.exceptions.SSLError
from django.contrib.auth import get_user_model
from import call_command
......@@ -773,7 +773,7 @@ class TestConvertSMILESToIUPAC(TestCase):
convert_smiles_to_iupac(smiles).lower(), expected_iupac.lower()
except SSLError:
except requests.exceptions.SSLError:
self.skipTest("SSL connection issue with the CACTUS WS, skipping")
iPPI-DB contribution module tests
import requests.exceptions.HTTPError
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
......@@ -22,7 +24,10 @@ class BibliographyIDTestCase(TestCase):
b = models.Bibliography()
b.source = "DO"
b.id_source = "10.1016/j.bmcl.2013.03.013"
except requests.exceptions.HTTPError:
self.skipTest("Connection error, skipping test")
class ContributionViewsAccessTestCase(TestCase):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment