Commit 7c2f58e4 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

skip if SSL problem in cactus web service connection

parent 4b12ba94
Pipeline #42979 failed with stages
in 10 minutes and 25 seconds
......@@ -3,6 +3,7 @@ iPPI-DB unit tests
"""
import json
import re
from ssl import SSLError
from django.contrib.auth import get_user_model
from django.core.management import call_command
......@@ -768,9 +769,12 @@ class TestConvertSMILESToIUPAC(TestCase):
def test_valid(self):
smiles_to_iupacs = {"CCC": "propane"}
for smiles, expected_iupac in smiles_to_iupacs.items():
self.assertEqual(
convert_smiles_to_iupac(smiles).lower(), expected_iupac.lower()
)
try:
self.assertEqual(
convert_smiles_to_iupac(smiles).lower(), expected_iupac.lower()
)
except SSLError:
self.skipTest("SSL connection issue with the CACTUS WS, skipping")
class DuplicateGeneNameTestCase(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