Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
0c15a78b
Commit
0c15a78b
authored
4 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
correct connection error handling syntax in tests
parent
ee986a29
No related branches found
No related tags found
1 merge request
!22
prepare for v1.0.5
Pipeline
#42981
passed
4 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ippisite/ippidb/tests/tests.py
+2
-2
2 additions, 2 deletions
ippisite/ippidb/tests/tests.py
ippisite/ippidb/tests/tests_contribute.py
+2
-2
2 additions, 2 deletions
ippisite/ippidb/tests/tests_contribute.py
with
4 additions
and
4 deletions
ippisite/ippidb/tests/tests.py
+
2
−
2
View file @
0c15a78b
...
...
@@ -3,7 +3,7 @@ iPPI-DB unit tests
"""
import
json
import
re
import
requests.exceptions
.
SSLError
from
requests.exceptions
import
SSLError
from
django.contrib.auth
import
get_user_model
from
django.core.management
import
call_command
...
...
@@ -773,7 +773,7 @@ class TestConvertSMILESToIUPAC(TestCase):
self
.
assertEqual
(
convert_smiles_to_iupac
(
smiles
).
lower
(),
expected_iupac
.
lower
()
)
except
requests
.
exceptions
.
SSLError
:
except
SSLError
:
self
.
skipTest
(
"
SSL connection issue with the CACTUS WS, skipping
"
)
...
...
This diff is collapsed.
Click to expand it.
ippisite/ippidb/tests/tests_contribute.py
+
2
−
2
View file @
0c15a78b
"""
iPPI-DB contribution module tests
"""
import
requests.exceptions
.
HTTPError
from
requests.exceptions
import
HTTPError
from
django.contrib.auth
import
get_user_model
from
django.contrib.auth.models
import
Permission
...
...
@@ -26,7 +26,7 @@ class BibliographyIDTestCase(TestCase):
b
.
id_source
=
"
10.1016/j.bmcl.2013.03.013
"
try
:
b
.
save
(
autofill
=
True
)
except
requests
.
exceptions
.
HTTPError
:
except
HTTPError
:
self
.
skipTest
(
"
Connection error, skipping test
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment