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
3a607b18
Commit
3a607b18
authored
Apr 07, 2021
by
carlosribas
Browse files
Fix unit tests
parent
55bb4e74
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
rnacentral/sequence_search/tests.py
rnacentral/sequence_search/tests.py
+7
-5
No files found.
rnacentral/sequence_search/tests.py
View file @
3a607b18
...
...
@@ -7,11 +7,13 @@ from sequence_search.views import dashboard, show_searches
class
SequenceSearchTest
(
TestCase
):
def
setUp
(
self
):
self
.
data
=
[
{
"count"
:
15
,
"avg_time"
:
"0:02:47"
,
"search"
:
"all"
},
{
"count"
:
0
,
"avg_time"
:
0
,
"search"
:
"last-24-hours"
},
{
"count"
:
3
,
"avg_time"
:
"0:02:19"
,
"search"
:
"last-week"
}
]
self
.
data
=
{
"all_searches_result"
:
{
"count"
:
14602
,
"avg_time"
:
"0:01:10"
},
"last_24_hours_result"
:
{
"count"
:
118
,
"avg_time"
:
"0:04:07"
},
"last_week_result"
:
{
"count"
:
896
,
"avg_time"
:
"0:00:46"
},
"searches_per_month"
:
[],
"expert_db_results"
:
[{
"RNAcentral"
:
[]},
{
"Rfam"
:
[]},
{
"miRBase"
:
[]},
{
"snoDB"
:
[]},
{
"GtRNAdb"
:
[]}]
}
def
test_show_searches_url
(
self
):
view
=
resolve
(
'/sequence-search/show-searches'
)
...
...
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