diff options
author | Muriithi Frederick Muriuki | 2021-08-04 11:30:44 +0300 |
---|---|---|
committer | Muriithi Frederick Muriuki | 2021-08-04 11:30:44 +0300 |
commit | f712da630c1a3642cb44b62c4b2b857373cd78d7 (patch) | |
tree | 55417c63e2955522769f302c269411b7a2cd5afa /tests/unit/db | |
parent | 0d7ebb87e2995207f23bc8b8e05e64aaab50b48d (diff) | |
download | genenetwork3-f712da630c1a3642cb44b62c4b2b857373cd78d7.tar.gz |
Fix issues caught by pylint
* gn3/computations/slink.py: remove unused imports
* gn3/db/traits.py: remove unnecessary `else` clauses
* tests/unit/db/test_traits.py: add docstrings for functions
Diffstat (limited to 'tests/unit/db')
-rw-r--r-- | tests/unit/db/test_traits.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/db/test_traits.py b/tests/unit/db/test_traits.py index 2445d26..1c481a2 100644 --- a/tests/unit/db/test_traits.py +++ b/tests/unit/db/test_traits.py @@ -207,6 +207,7 @@ class TestTraitsDBFunctions(TestCase): ) def test_set_haveinfo_field(self): + """Test that the `haveinfo` field is set up correctly""" for trait_info, expected in [ [{}, {"haveinfo": 0}], [{"k1": "v1"}, {"k1": "v1", "haveinfo": 1}]]: @@ -214,6 +215,7 @@ class TestTraitsDBFunctions(TestCase): self.assertEqual(set_haveinfo_field(trait_info), expected) def test_set_homologene_id_field(self): + """Test that the `homologene_id` field is set up correctly""" for trait_info, expected in [ [{"type": "Publish"}, {"type": "Publish", "homologeneid": None}], @@ -229,6 +231,7 @@ class TestTraitsDBFunctions(TestCase): set_homologene_id_field(trait_info, db_mock), expected) def test_set_confidential_field(self): + """Test that the `confidential` field is set up correctly""" for trait_info, expected in [ [{"type": "Publish"}, {"type": "Publish", "confidential": 0}], [{"type": "ProbeSet"}, {"type": "ProbeSet"}], |