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
f39a06d4
Commit
f39a06d4
authored
Apr 09, 2021
by
carlosribas
Browse files
Add new tests
parent
c3f76364
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
rnacentral/export/tests.py
rnacentral/export/tests.py
+10
-0
No files found.
rnacentral/export/tests.py
View file @
f39a06d4
...
...
@@ -129,3 +129,13 @@ class DownloadResultsTests(ExportSearchResultsTestCase):
'?job=%s'
%
job_id
])
r
=
requests
.
get
(
url
)
self
.
assertEqual
(
r
.
status_code
,
404
)
class
ResultsPageTests
(
ExportSearchResultsTestCase
):
def
test_results_status_code
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'export-job-results'
))
self
.
assertEquals
(
response
.
status_code
,
200
)
def
test_results_template
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'export-job-results'
))
self
.
assertTemplateUsed
(
response
,
'portal/search/export-job-results.html'
)
\ No newline at end of file
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