From d314397f00f2245c49b6d40c5d0149bef08b441d Mon Sep 17 00:00:00 2001 From: guerra Date: Thu, 2 Mar 2017 10:14:15 -0300 Subject: [PATCH] Removed argument the Illumina rule in iRODS 4.2 --- tests/test_extract_illumina.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/test_extract_illumina.py b/tests/test_extract_illumina.py index 9ee7dda..275038a 100644 --- a/tests/test_extract_illumina.py +++ b/tests/test_extract_illumina.py @@ -9,12 +9,14 @@ def setUp(self): iput(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'samples', self.ILLUMINA_FILE_NAME)) def test_extract_illumina(self): - self.call_extract_metadata_for_illumina( - objPath=self.ILLUMINA_OBJ_PATH, - targetPath=self.IRODS_HOME_PATH, - destResc=self.IRODS_RESC, - status='null' - ) + illumina_args = {'objPath': self.ILLUMINA_OBJ_PATH, + 'targetPath': self.IRODS_HOME_PATH, + 'destResc': self.IRODS_RESC} + + if not self.IRODS_42: + illumina_args['status'] = 'null' + + self.call_extract_metadata_for_illumina(**illumina_args) # '-d' option is used when metadatas are get from a file and not a collection rule_output = imeta_ls('-d', self.ILLUMINA_METADATA_FILE)