about summary refs log tree commit diff
path: root/tests/unit/db/test_traits.py
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2021-08-09 11:44:47 +0300
committerMuriithi Frederick Muriuki2021-08-09 11:44:47 +0300
commit667e67bae832ca5083f3319ada4fda67aca41f44 (patch)
treec733219f180fbe4448baee80b3ced13176518182 /tests/unit/db/test_traits.py
parent4bc516beea37b0cc0a54f42d93cf5606f073abbf (diff)
downloadgenenetwork3-667e67bae832ca5083f3319ada4fda67aca41f44.tar.gz
Fix linting errors
Issue:
https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi

* Add module, class and function docstrings
* Deactivate some irrelevant pylint errors
* Fix indentations and line-lengths
Diffstat (limited to 'tests/unit/db/test_traits.py')
-rw-r--r--tests/unit/db/test_traits.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/db/test_traits.py b/tests/unit/db/test_traits.py
index 5f52c18..d9d7bbb 100644
--- a/tests/unit/db/test_traits.py
+++ b/tests/unit/db/test_traits.py
@@ -121,6 +121,9 @@ class TestTraitsDBFunctions(TestCase):
                 trait_source)
 
     def test_build_trait_name_with_good_fullnames(self):
+        """
+        Check that the name is built correctly.
+        """
         for fullname, expected in [
                 ["testdb::testname",
                  {"db": {"dataset_name": "testdb"}, "trait_name": "testname",
@@ -133,6 +136,9 @@ class TestTraitsDBFunctions(TestCase):
                 self.assertEqual(build_trait_name(fullname), expected)
 
     def test_build_trait_name_with_bad_fullnames(self):
+        """
+        Check that an exception is raised if the full name format is wrong.
+        """
         for fullname in ["", "test", "test:test"]:
             with self.subTest(fullname=fullname):
                 with self.assertRaises(AssertionError, msg="Name format error"):