Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
0d0a061e
Commit
0d0a061e
authored
Apr 07, 2021
by
carlosribas
Browse files
Create basic unit tests
parent
3a607b18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
rnacentral/sequence_search/tests.py
rnacentral/sequence_search/tests.py
+24
-0
No files found.
rnacentral/sequence_search/tests.py
View file @
0d0a061e
...
...
@@ -38,3 +38,27 @@ class SequenceSearchTest(TestCase):
mock_get
.
return_value
.
json
.
return_value
=
self
.
data
response
=
self
.
client
.
get
(
reverse
(
'sequence-search-dashboard'
))
self
.
assertTemplateUsed
(
response
,
'dashboard.html'
)
def
test_help_page_status_code
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'help-sequence-search'
))
self
.
assertEquals
(
response
.
status_code
,
200
)
def
test_help_page_template
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'help-sequence-search'
))
self
.
assertTemplateUsed
(
response
,
'portal/help/sequence-search-help.html'
)
def
test_sequence_search_api_status_code
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'sequence-search-api'
))
self
.
assertEquals
(
response
.
status_code
,
200
)
def
test_sequence_search_api_template
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'sequence-search-api'
))
self
.
assertTemplateUsed
(
response
,
'api.html'
)
def
test_sequence_search_status_code
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'sequence-search'
))
self
.
assertEquals
(
response
.
status_code
,
200
)
def
test_sequence_search_template
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'sequence-search'
))
self
.
assertTemplateUsed
(
response
,
'sequence-search-embed.html'
)
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