1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/80d68ea889c0/ Changeset: 80d68ea889c0 User: jmchilton Date: 2014-09-16 17:14:27 Summary: Fix testing helper bug I introduced with recent workflow testing work. Affected #: 1 file diff -r 24452bb4c6aa1a77a5d9d55fd76c2c43d47dcb9e -r 80d68ea889c01357b520ecefc56f86b0a44549fc test/api/helpers.py --- a/test/api/helpers.py +++ b/test/api/helpers.py @@ -142,9 +142,14 @@ elif "dataset" in kwds: dataset_id = kwds[ "dataset" ][ "id" ] else: - hid = kwds.get( "hid", -1 ) # If not hid, just grab last dataset + hid = kwds.get( "hid", None ) # If not hid, just grab last dataset + if hid: + index = hid - 1 + else: + # No hid specified - just grab most recent element. + index = -1 dataset_contents = self.__get_contents_request( history_id ).json() - dataset_id = dataset_contents[ hid - 1 ][ "id" ] + dataset_id = dataset_contents[ index ][ "id" ] return dataset_id def __get_contents_request( self, history_id, suffix=""): Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.