Skip to content

Commit

Permalink
Fix looper args bug. Fix #41
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Feb 16, 2017
1 parent a2bbe11 commit 9e7db15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion looper/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ def select_pipeline(self, pipeline_name):
def uses_looper_args(self, pipeline_name):
config = self.select_pipeline(pipeline_name)

if hasattr(config, "looper_args") and config.looper_args:
if config.has_key("looper_args") and config["looper_args"]:
return True
else:
return False
Expand Down
6 changes: 3 additions & 3 deletions test_looper.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def test1(self):

self.assertTrue(s3.confirm_required_inputs())




# test uses_looper_args
self.assertTrue(pi.uses_looper_args("testngs.sh"))
self.assertFalse(pi.uses_looper_args("testpipeline.sh"))



Expand Down
2 changes: 1 addition & 1 deletion tests/pipelines/config/pipeline_interface.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
testpipeline.sh:
name: test_pipeline # Name used by pypiper so looper can find the logs
looper_args: True
looper_args: False
arguments:
"--input": file
optional_arguments:
Expand Down

0 comments on commit 9e7db15

Please sign in to comment.