about summary refs log tree commit diff
path: root/tests/unit/computations/test_heatmap.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-09-15 06:01:44 +0300
committerFrederick Muriuki Muriithi2021-09-15 06:01:44 +0300
commitf17b489c8eb94050b81b1a59fb43954d036f7c38 (patch)
treeff4414fea0ff3b1a663e553f846cfa7abe5b0320 /tests/unit/computations/test_heatmap.py
parented2e4c0f9d68cfb720da95eba559d69359f7b5fc (diff)
downloadgenenetwork3-f17b489c8eb94050b81b1a59fb43954d036f7c38.tar.gz
Fix format of arguments and expected values
* tests/unit/computations/test_heatmap.py: ordering is not longer provided as
  a list of tuples; the ordering values are just a list of numbers now. This
  commit updates the test to take this into consideration.

* tests/unit/computations/test_qtlreaper.py: the 'Chr' value if numeric, is
  represented by an actual number, not a string. This commit updates the code
  to take this into consideration.
Diffstat (limited to 'tests/unit/computations/test_heatmap.py')
-rw-r--r--tests/unit/computations/test_heatmap.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/computations/test_heatmap.py b/tests/unit/computations/test_heatmap.py
index f1bbefc..156af45 100644
--- a/tests/unit/computations/test_heatmap.py
+++ b/tests/unit/computations/test_heatmap.py
@@ -165,22 +165,22 @@ class TestHeatmap(TestCase):
         """Test retrieval of strains and values."""
         for orders, slist, tdata, expected in [
                 [
-                    [(60, 2)],
+                    [2],
                     ["s1", "s2", "s3", "s4"],
                     [[2, 9, 6, None, 4],
                      [7, 5, None, None, 4],
                      [9, None, 5, 4, 7],
                      [6, None, None, 4, None]],
-                    [[(60, 2), ["s1", "s3", "s4"], [9, 5, 4]]]
+                    [[2, ["s1", "s3", "s4"], [9, 5, 4]]]
                 ],
                 [
-                    [(60, 3)],
+                    [3],
                     ["s1", "s2", "s3", "s4", "s5"],
                     [[2, 9, 6, None, 4],
                      [7, 5, None, None, 4],
                      [9, None, 5, 4, 7],
                      [6, None, None, 4, None]],
-                    [[(60, 3), ["s1", "s4"], [6, 4]]]
+                    [[3, ["s1", "s4"], [6, 4]]]
                 ]]:
             with self.subTest(strainlist=slist, traitdata=tdata):
                 self.assertEqual(