From 12089cb2eae2201d3b348d21dd0e93a61e16e7c7 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 18 Jun 2021 21:27:38 +0000 Subject: 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 --- tests/unit/test_commands.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'tests/unit/test_commands.py') 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): -- cgit v1.2.3