Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
craw
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bertrand NÉRON
craw
Commits
5710efdc
Verified
Commit
5710efdc
authored
5 years ago
by
Bertrand NÉRON
Browse files
Options
Downloads
Patches
Plain Diff
add test when sort_use_col fail
parent
2acce0d1
No related branches found
No related tags found
No related merge requests found
Pipeline
#10895
passed with stages
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_heatmap.py
+3
-0
3 additions, 0 deletions
tests/test_heatmap.py
with
3 additions
and
0 deletions
tests/test_heatmap.py
+
3
−
0
View file @
5710efdc
...
...
@@ -143,6 +143,9 @@ class TestHeatmap(CRAWTest):
received_data
=
htmp
.
_sort_using_col
(
data
,
col
=
'
name
'
)
assert_frame_equal
(
expected_data
,
received_data
)
with
self
.
assertRaises
(
RuntimeError
)
as
ctx
:
htmp
.
_sort_using_col
(
data
)
self
.
assertEqual
(
str
(
ctx
.
exception
),
"
You must specify the column used to sort.
"
)
def
test_sort_using_file
(
self
):
data
=
pd
.
DataFrame
([
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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