1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/267d03b5c9cd/ Changeset: 267d03b5c9cd User: davebgx Date: 2014-04-25 20:28:17 Summary: Fix tool shed functional test for repository dependency handling. Affected #: 1 file
diff -r 666a75d94ee91091d94b65ffbfe700224ad58f15 -r 267d03b5c9cdcad228fd40e12340f01c45f12c60 test/base/twilltestcase.py --- a/test/base/twilltestcase.py +++ b/test/base/twilltestcase.py @@ -18,6 +18,7 @@ from galaxy.web import security from galaxy.web.framework.helpers import iff from galaxy.util.json import from_json_string +from galaxy.util import asbool from base.asserts import verify_assertions
from galaxy import eggs @@ -1325,11 +1326,25 @@ params[ key ] = value if params: url += '?%s' % urllib.urlencode( params ) + checked_boxes = dict() + unchecked_boxes = dict() if checkbox_params is not None: + for checkbox_field in checkbox_params: + if checkbox_field in checked_boxes or checkbox_field in unchecked_boxes: + continue + if asbool( checkbox_params[ checkbox_field ] ): + checked_boxes[ checkbox_field ] = True + else: + unchecked_boxes[ checkbox_field ] = False + # Any checkbox field that is found twice in the controller's incoming parameters is considered checked, + # while any field that only appears once is considered unchecked. + checkbox_params = '&'.join( [ urllib.urlencode( checked_boxes ), + urllib.urlencode( checked_boxes ), + urllib.urlencode( unchecked_boxes ) ] ) if params or parsed_url.query: - url += '&%s&%s' % ( urllib.urlencode( checkbox_params ), urllib.urlencode( checkbox_params ) ) + url += '&%s' % checkbox_params else: - url += '?%s&%s' % ( urllib.urlencode( checkbox_params ), urllib.urlencode( checkbox_params ) ) + url += '?%s' % checkbox_params new_url = tc.go( url ) return_code = tc.browser.get_code() assert return_code in allowed_codes, 'Invalid HTTP return code %s, allowed codes: %s' % \
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.
galaxy-commits@lists.galaxyproject.org