diff options
author | BonfaceKilz | 2021-03-05 12:06:22 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-03-08 21:09:58 +0300 |
commit | 5c56425d51ab6a6b4ffd6ec8f86121bd91ff5e63 (patch) | |
tree | 4bb947a5f3775cdefc492adede41e018694c654d /tests/unit/computations | |
parent | 4cf5c29a06001577054b3548a24d895cf1911e13 (diff) | |
download | genenetwork3-5c56425d51ab6a6b4ffd6ec8f86121bd91ff5e63.tar.gz |
Apply pep-8 formatting
Began using elpy's format code fn
Diffstat (limited to 'tests/unit/computations')
-rw-r--r-- | tests/unit/computations/test_gemma.py | 20 |
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")) |