diff options
author | Alexanderlacuna | 2020-11-03 20:23:19 +0300 |
---|---|---|
committer | Alexanderlacuna | 2020-11-03 20:23:19 +0300 |
commit | 68f71e11343789266ccac6e079dd0bc1b16d407f (patch) | |
tree | 9498e5ef899887b6ad24afd9b6a4a4e9fd319ff0 /wqflask/tests | |
parent | 4b6d964ccf484225f568361b3bc6136a758cd475 (diff) | |
download | genenetwork2-68f71e11343789266ccac6e079dd0bc1b16d407f.tar.gz |
add pep8 formatting
Diffstat (limited to 'wqflask/tests')
-rw-r--r-- | wqflask/tests/wqflask/show_trait/test_show_trait.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/tests/wqflask/show_trait/test_show_trait.py b/wqflask/tests/wqflask/show_trait/test_show_trait.py index f7133292..f41b7288 100644 --- a/wqflask/tests/wqflask/show_trait/test_show_trait.py +++ b/wqflask/tests/wqflask/show_trait/test_show_trait.py @@ -155,6 +155,7 @@ class TestTraits(unittest.TestCase): self.assertEqual(get_categorical_variables(trait, sample_list), []) def test_get_categorical_variables_with_sample_attributes(self): + """test for getting categorical variable names with no samples""" this_trait=TraitObject({"data":{ "Gene1":TraitObject({"extra_attributes":{"ex1":"ex1value"}}), "Gene2":TraitObject({"extra_attributes":{"ex2":"ex2value"}}), @@ -169,6 +170,8 @@ class TestTraits(unittest.TestCase): }}) + # + results=get_categorical_variables(this_trait,sample_list) self.assertEqual(["ex1","ex2","ex3","not_in_extra_attributes"],results) |