aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests
diff options
context:
space:
mode:
authorzsloan2021-02-18 22:05:43 +0000
committerBonfaceKilz2021-02-19 12:59:37 +0300
commit4817d78b22b899b9beb3fd3a99a10d6cbcee22d6 (patch)
tree658c1ea5394d5cf032f9c061bba7c73ea6f6a71e /wqflask/tests
parentcb039b3e7e8a3a260edc80b0de79fc27af795cf0 (diff)
downloadgenenetwork2-4817d78b22b899b9beb3fd3a99a10d6cbcee22d6.tar.gz
Fixed test_gen_menu to reflect updated query
Diffstat (limited to 'wqflask/tests')
-rw-r--r--wqflask/tests/unit/wqflask/api/test_gen_menu.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/wqflask/tests/unit/wqflask/api/test_gen_menu.py b/wqflask/tests/unit/wqflask/api/test_gen_menu.py
index cc666f0c..57eb1650 100644
--- a/wqflask/tests/unit/wqflask/api/test_gen_menu.py
+++ b/wqflask/tests/unit/wqflask/api/test_gen_menu.py
@@ -244,10 +244,11 @@ class TestGenMenu(unittest.TestCase):
"ProbeFreeze, InbredSet, Tissue, Species WHERE " +
"Species.Name = 'Mouse' AND Species.Id = " +
"InbredSet.SpeciesId AND InbredSet.Name = 'HLC' AND " +
- "ProbeSetFreeze.ProbeFreezeId = ProbeFreeze.Id and " +
+ "ProbeSetFreeze.ProbeFreezeId = ProbeFreeze.Id AND " +
"Tissue.Name = 'mRNA' AND ProbeFreeze.TissueId = " +
- "Tissue.Id and ProbeFreeze.InbredSetId = InbredSet.Id " +
- "ORDER BY ProbeSetFreeze.OrderList DESC")
+ "Tissue.Id AND ProbeFreeze.InbredSetId = InbredSet.Id AND " +
+ "ProbeSetFreeze.public > 0 " +
+ "ORDER BY -ProbeSetFreeze.OrderList DESC, ProbeSetFreeze.CreateTime DESC")
@mock.patch('wqflask.api.gen_menu.build_datasets')
@mock.patch('wqflask.api.gen_menu.g')