aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/db/test_datasets.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_datasets.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_datasets.py')
-rw-r--r--tests/unit/db/test_datasets.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/db/test_datasets.py b/tests/unit/db/test_datasets.py
index 4f405cb..38de0e2 100644
--- a/tests/unit/db/test_datasets.py
+++ b/tests/unit/db/test_datasets.py
@@ -1,3 +1,5 @@
+"""Tests for gn3/db/datasets.py"""
+
from unittest import mock, TestCase
from gn3.db.datasets import (
retrieve_dataset_name,
@@ -7,6 +9,7 @@ from gn3.db.datasets import (
retrieve_probeset_riset_fields)
class TestDatasetsDBFunctions(TestCase):
+ """Test cases for datasets functions."""
def test_retrieve_dataset_name(self):
"""Test that the function is called correctly."""
@@ -34,7 +37,7 @@ class TestDatasetsDBFunctions(TestCase):
"(Name = %(name)s "
"OR FullName = %(name)s "
"OR ShortName = %(name)s)".format(
- table=table, cols=columns, ttype=trait_type),
+ table=table, cols=columns),
{"threshold": thresh, "name": dataset_name})
def test_retrieve_probeset_riset_fields(self):