aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2021-09-01 11:08:38 +0300
committerMuriithi Frederick Muriuki2021-09-01 11:08:38 +0300
commit3ded952f40f486d9aa69746eac2afe7f67fef790 (patch)
tree27847b2c8081a3254b6c28a8c6c7b691c1478947 /tests
parentabfc0410a2385d8c3d6ee1915fc99b708e1d0dbc (diff)
downloadgenenetwork3-3ded952f40f486d9aa69746eac2afe7f67fef790.tar.gz
Fix linting and typing issues
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/db/test_genotypes.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/db/test_genotypes.py b/tests/unit/db/test_genotypes.py
index a05ce48..c125224 100644
--- a/tests/unit/db/test_genotypes.py
+++ b/tests/unit/db/test_genotypes.py
@@ -18,9 +18,9 @@ class TestGenotypes(TestCase):
"@type:test_type", "@mat:test_mat \t", "@pat:test_pat ",
"@het: test_het ", "@unk: test_unk", "@other: test_other",
"@brrr: test_brrr "]),
- (("group", "test_group"), ("filler", "test_filler"),
- ("type", "test_type"), ("mat", "test_mat"), ("pat", "test_pat"),
- ("het", "test_het"), ("unk", "test_unk")))
+ (("group", "test_group"), ("filler", "test_filler"),
+ ("type", "test_type"), ("mat", "test_mat"), ("pat", "test_pat"),
+ ("het", "test_het"), ("unk", "test_unk")))
def test_parse_genotype_header(self):
"""Test that the genotype header is parsed correctly."""
@@ -71,7 +71,7 @@ class TestGenotypes(TestCase):
(("chr", "1"), ("name", "rs31443144"), ("cM", 2.0),
("Mb", 3.0),
("genotype", (-1, -1, 1, 0, 1, -1, "U", 1, -1, -1)))]]:
- with self.subTest(line = line):
+ with self.subTest(line=line):
self.assertEqual(
parse_genotype_marker(line, geno_obj, parlist),
expected)
@@ -110,7 +110,7 @@ class TestGenotypes(TestCase):
("loci",
({"chr": "1", "name": "rs31443144", "cM": 2.0, "Mb": None,
"genotype": (-1, 1, 1, 0, 1, -1, "U", 1, -1, -1)},))),)]]:
- with self.subTest(markers = markers):
+ with self.subTest(markers=markers):
self.assertEqual(
build_genotype_chromosomes(geno_obj, markers),
expected)