about summary refs log tree commit diff
path: root/tests/unit
diff options
context:
space:
mode:
authorBonfaceKilz2021-03-05 12:06:22 +0300
committerBonfaceKilz2021-03-08 21:09:58 +0300
commit5c56425d51ab6a6b4ffd6ec8f86121bd91ff5e63 (patch)
tree4bb947a5f3775cdefc492adede41e018694c654d /tests/unit
parent4cf5c29a06001577054b3548a24d895cf1911e13 (diff)
downloadgenenetwork3-5c56425d51ab6a6b4ffd6ec8f86121bd91ff5e63.tar.gz
Apply pep-8 formatting
Began using elpy's format code fn
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/computations/test_gemma.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/unit/computations/test_gemma.py b/tests/unit/computations/test_gemma.py
index b5ffbfd..2d2fbf9 100644
--- a/tests/unit/computations/test_gemma.py
+++ b/tests/unit/computations/test_gemma.py
@@ -12,8 +12,7 @@ class TestGemma(unittest.TestCase):
     def test_generate_pheno_txt_file(self):
         """Test that the pheno text file is generated correctly"""
         open_mock = mock.mock_open()
-        with mock.patch("gn3.computations.gemma.open",
-                        open_mock, create=True):
+        with mock.patch("gn3.computations.gemma.open", open_mock, create=True):
             _file = generate_pheno_txt_file(tmpdir="/tmp",
                                             trait_filename="phenotype.txt",
                                             values=["x", "x", "BXD07 438.700"])
@@ -24,7 +23,8 @@ class TestGemma(unittest.TestCase):
         open_mock.return_value.write.assert_has_calls([
             mock.call("NA\n"),
             mock.call("NA\n"),
-            mock.call("BXD07 438.700\n")])
+            mock.call("BXD07 438.700\n")
+        ])
 
     def test_generate_hash_of_string(self):
         """Test that a string is hashed correctly"""
@@ -42,11 +42,11 @@ class TestGemma(unittest.TestCase):
                 gemma_kwargs={
                     "geno_filename": "genofile.txt",
                     "trait_filename": "test.txt",
-                    "covar_filename": "genofile_snps.txt"},
+                    "covar_filename": "genofile_snps.txt"
+                },
                 output_file="/tmp/gn2/k_output_gUFhGu4rLG7k+CXLPk1OUg.txt",
-            ),
-            ("gemma-wrapper --json -- "
-             "-g genofile.txt -p "
-             "test.txt -a genofile_snps.txt "
-             "-gk > /tmp/gn2/"
-             "k_output_gUFhGu4rLG7k+CXLPk1OUg.txt"))
+            ), ("gemma-wrapper --json -- "
+                "-g genofile.txt -p "
+                "test.txt -a genofile_snps.txt "
+                "-gk > /tmp/gn2/"
+                "k_output_gUFhGu4rLG7k+CXLPk1OUg.txt"))