Skip to content
Snippets Groups Projects
Verified Commit 5710efdc authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

:white_check_mark: 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
......@@ -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([
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment