Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
Sort for ALL and patterns
Browse files Browse the repository at this point in the history
SE-2388
  • Loading branch information
Christopher Dunn committed Apr 23, 2019
1 parent 169af8b commit 3957a5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pypeflow/do_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __getattr__(self, name):
result = self.kwds.itervalues()
else:
result = [str(self.kwds[name])]
return ' '.join(self.quote(v) for v in result)
return ' '.join(self.quote(v) for v in sorted(result))
def __init__(self, kwds, quote=quote):
self.kwds = kwds
self.quote = quote
Expand Down
4 changes: 2 additions & 2 deletions test/test_do_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
echo PP
"""),
# input.i* (with quoting)
({'ii': 'II', 'ij': 'I J', 'ab': 'AB'}, {'oo': 'OO'}, {'pp': 'PP'},
({'ii': 'II', 'ij': 'I J', 'ia': 'IA', 'ab': 'AB'}, {'oo': 'OO'}, {'pp': 'PP'},
"""\
echo {input.i*}
echo {input.ab}
echo {output.oo}
echo {params.pp}
""",
"""\
echo II 'I J'
echo 'I J' IA II
echo AB
echo OO
echo PP
Expand Down

0 comments on commit 3957a5a

Please sign in to comment.