diff options
author | Frederick Muriuki Muriithi | 2022-09-19 09:30:08 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-09-19 09:32:35 +0300 |
commit | e1b7c18b3d42600746f03ade29030e8a14c7ea1d (patch) | |
tree | 4b429b6f20f95f5508f4f4a318e8e04915252e18 /wqflask/tests | |
parent | 63300e26ec4a8dab60cc9a80a6c4204c2c156e22 (diff) | |
download | genenetwork2-e1b7c18b3d42600746f03ade29030e8a14c7ea1d.tar.gz |
Remove "wrong" assertions
The assertions was checking that the function was implemented a certain
way, rather than whether the function was doing the correct thing.
Diffstat (limited to 'wqflask/tests')
-rw-r--r-- | wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py index 53d96d7f..43051828 100644 --- a/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py +++ b/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py @@ -68,13 +68,11 @@ class TestGemmaMapping(unittest.TestCase): mock_parse_loco.return_value = [] results = run_gemma(this_trait=trait, this_dataset=dataset, samples=[ ], vals=[], covariates="", use_loco=True) - self.assertEqual(mock_os.system.call_count, 2) mock_gen_pheno_txt.assert_called_once() mock_parse_loco.assert_called_once_with( dataset, "GP1_GWA_RRRRRR", True) mock_os.path.isfile.assert_called_once_with( ('/home/user/imgfile_output.assoc.txt')) - self.assertEqual(mock_flat_files.call_count, 4) self.assertEqual(results, ([], "GP1_GWA_RRRRRR")) @mock.patch("wqflask.marker_regression.gemma_mapping.TEMPDIR", "/home/user/data") |