aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests
diff options
context:
space:
mode:
authorAlexanderlacuna2020-11-06 10:59:12 +0300
committerAlexanderlacuna2020-11-06 10:59:12 +0300
commit6b23bf4a0698339a1c7672b8d84dfef9b9066a79 (patch)
tree6ac6afe71fe1c83e6b47d5e84dc5cdc8153a792d /wqflask/tests
parent7078bd8a2d9d3a2ab8f31e102deeece8bc0e5fcf (diff)
downloadgenenetwork2-6b23bf4a0698339a1c7672b8d84dfef9b9066a79.tar.gz
modify tests to for changes in the natural sort function
Diffstat (limited to 'wqflask/tests')
-rw-r--r--wqflask/tests/wqflask/show_trait/testSampleList.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/wqflask/tests/wqflask/show_trait/testSampleList.py b/wqflask/tests/wqflask/show_trait/testSampleList.py
index 4cc8c4da..34c51e3e 100644
--- a/wqflask/tests/wqflask/show_trait/testSampleList.py
+++ b/wqflask/tests/wqflask/show_trait/testSampleList.py
@@ -10,9 +10,7 @@ class TestSampleList(unittest.TestCase):
characters_list = ["z", "f", "q", "s", "t", "a", "g"]
names_list = ["temp1", "publish", "Sample", "Dataset"]
-
- natural_sort(characters_list)
- natural_sort(names_list)
-
- self.assertEqual(characters_list, ["a", "f", "g", "q", "s", "t", "z"])
- self.assertEqual(names_list, ["Dataset", "Sample", "publish", "temp1"])
+ sorted_list_a=natural_sort(characters_list)
+ sorted_list_b=natural_sort(names_list)
+ self.assertEqual(sorted_list_a, ["a", "f", "g", "q", "s", "t", "z"])
+ self.assertEqual(sorted_list_b,["Dataset", "Sample", "publish", "temp1"])