aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-03 16:46:33 +0300
committerBonfaceKilz2020-08-03 17:04:44 +0300
commit30341891c22e2161c1217f808ed05748c91036e2 (patch)
tree1c35279ebf34591fbdb32b7e9bb5dd1159a91976
parent452f5442fec13afce07997494adc46fb4bbee9d7 (diff)
downloadgenenetwork2-30341891c22e2161c1217f808ed05748c91036e2.tar.gz
Move variable to setUp
* wqflask/tests/api/test_gen_menu.py: Move variable
-rw-r--r--wqflask/tests/api/test_gen_menu.py35
1 files changed, 1 insertions, 34 deletions
diff --git a/wqflask/tests/api/test_gen_menu.py b/wqflask/tests/api/test_gen_menu.py
index 92485d38..ca841708 100644
--- a/wqflask/tests/api/test_gen_menu.py
+++ b/wqflask/tests/api/test_gen_menu.py
@@ -258,40 +258,7 @@ class TestGenMenu(unittest.TestCase):
phenotypes_exist_mock.return_value = True
genotypes_exist_mock.return_value = True
- expected_result = {
- 'mouse': {
- 'H_T2': [('Phenotypes',
- 'Traits and Cofactors',
- 'Phenotypes'),
- ('Genotypes',
- 'DNA Markers and SNPs',
- 'Genotypes'),
- ['M', 'M', 'Molecular Trait Datasets']],
- 'H_T1': [('Phenotypes',
- 'Traits and Cofactors',
- 'Phenotypes'),
- ('Genotypes',
- 'DNA Markers and SNPs',
- 'Genotypes'),
- ['M', 'M', 'Molecular Trait Datasets']]
- },
- 'human': {
- 'HLC': [('Phenotypes',
- 'Traits and Cofactors',
- 'Phenotypes'),
- ('Genotypes',
- 'DNA Markers and SNPs',
- 'Genotypes'),
- ['M', 'M', 'Molecular Trait Datasets']],
- 'BXD': [('Phenotypes',
- 'Traits and Cofactors',
- 'Phenotypes'),
- ('Genotypes',
- 'DNA Markers and SNPs',
- 'Genotypes'),
- ['M', 'M', 'Molecular Trait Datasets']]
- }
- }
+ expected_result = self.test_type
build_types_mock.return_value = [
['M', 'M', 'Molecular Trait Datasets']