Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
eb9b45a9
Commit
eb9b45a9
authored
May 20, 2021
by
carlosribas
Browse files
Do not run tests that use S3
parent
de4ddb5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
rnacentral/apiv1/test.py
rnacentral/apiv1/test.py
+6
-3
No files found.
rnacentral/apiv1/test.py
View file @
eb9b45a9
...
...
@@ -167,12 +167,14 @@ class RnaEndpointsTestCase(ApiV1BaseClass):
response
=
self
.
_test_url
(
url
)
self
.
assertGreater
(
response
.
data
[
'count'
],
0
)
def
test_rna_svg_image
(
self
):
# TODO: mock s3
def
_test_rna_svg_image
(
self
):
"""Test SVG endpoint."""
url
=
reverse
(
'rna-2d-svg'
,
kwargs
=
{
'pk'
:
self
.
upi_with_svg
})
self
.
_test_url
(
url
)
def
test_rna_svg_image_404
(
self
):
# TODO: mock s3
def
_test_rna_svg_image_404
(
self
):
"""Test endpoint for 404 status code."""
response
=
self
.
client
.
get
(
reverse
(
'rna-2d-svg'
,
kwargs
=
{
'pk'
:
'URS0000000002'
}))
self
.
assertEqual
(
response
.
status_code
,
404
)
...
...
@@ -182,7 +184,8 @@ class RnaEndpointsTestCase(ApiV1BaseClass):
url
=
reverse
(
'rna-xrefs-species-specific'
,
kwargs
=
{
'pk'
:
'URS00006457C1'
,
'taxid'
:
'10090'
})
self
.
_test_url
(
url
)
def
test_rna_2d_species_specific
(
self
):
# TODO: mock s3
def
_test_rna_2d_species_specific
(
self
):
"""Test rna-2d-species-specific endpoint."""
url
=
reverse
(
'rna-2d-species-specific'
,
kwargs
=
{
'pk'
:
'URS00006457C1'
,
'taxid'
:
'10090'
})
self
.
_test_url
(
url
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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