Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iPPIDB
ippidb-web
Commits
7c2f58e4
Commit
7c2f58e4
authored
Dec 08, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ippisite/ippidb/tests/tests.py
View file @
7c2f58e4
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment