aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorzsloan2021-06-18 21:27:38 +0000
committerzsloan2021-06-18 22:08:04 +0000
commit12089cb2eae2201d3b348d21dd0e93a61e16e7c7 (patch)
tree5ef8ba7567d33d9ba1032bb22f46fecbdbd2d43a /tests
parentd42b85ae5fcea1b71a7165fd6e64745a228c48f9 (diff)
downloadgenenetwork3-12089cb2eae2201d3b348d21dd0e93a61e16e7c7.tar.gz
Change test_compose_rqtl_command in test_commands.py to have different arguments to hopefully avoid github's pylint 'duplicate code' complaint
Changed some parameters in test_compose_rqtl_cmd to avoid pylint complaining about duplicate code
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_commands.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/tests/unit/test_commands.py b/tests/unit/test_commands.py
index a3d0273..aaefb23 100644
--- a/tests/unit/test_commands.py
+++ b/tests/unit/test_commands.py
@@ -59,24 +59,23 @@ class TestCommands(unittest.TestCase):
self.assertEqual(
compose_rqtl_cmd(rqtl_wrapper_cmd="rqtl-wrapper",
rqtl_wrapper_kwargs={
- "g": "genofile",
- "p": "phenofile",
- "model": "normal",
- "method": "hk",
- "nperm": 1000,
+ "g": "the_genofile",
+ "p": "the_phenofile",
+ "model": "np",
+ "method": "ehk",
+ "nperm": 2000,
"scale": "Mb",
- "control": "rs123456"
+ "control": "rs234567"
},
rqtl_wrapper_bool_kwargs=[
- "addcovar",
- "interval"
+ "addcovar"
]),
("rqtl-wrapper "
- "--g genofile --p phenofile "
- "--model normal --method hk "
- "--nperm 1000 --scale Mb "
- "--control rs123456 "
- "--addcovar --interval")
+ "--g the_genofile --p the_phenofile "
+ "--model np --method ehk "
+ "--nperm 2000 --scale Mb "
+ "--control rs234567 "
+ "--addcovar")
)
def test_queue_cmd_exception_raised_when_redis_is_down(self):