commit/galaxy-central: 2 new changesets
2 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/9fff68afbacf/ Changeset: 9fff68afbacf User: jmchilton Date: 2014-02-20 22:18:37 Summary: Fix failing api search test. Affected #: 1 file diff -r 647946821504986a4941738cab0ec52be2c295cf -r 9fff68afbacf9836d65dbf945a43fddc063ecf55 test/functional/api/test_search.py --- a/test/functional/api/test_search.py +++ b/test/functional/api/test_search.py @@ -16,7 +16,7 @@ delete_url = self._api_url( "workflows/%s" % workflow_id, use_key=True ) delete_request( delete_url ) - search_response = self.__search( "select * from workflow where not deleted" ) + search_response = self.__search( "select * from workflow where deleted = False" ) assert not self.__has_result_with_name( search_response, "test_for_search (imported from API)" ), search_response.json() def __search( self, query ): https://bitbucket.org/galaxy/galaxy-central/commits/ccbd6e8e64ee/ Changeset: ccbd6e8e64ee User: jmchilton Date: 2014-02-20 22:28:06 Summary: Fix mock-requests PUT action. Should fix failing history import/export test on buildbot server that doesn't have requests dependency available. Affected #: 1 file diff -r 9fff68afbacf9836d65dbf945a43fddc063ecf55 -r ccbd6e8e64ee76bf64dca24368052fc6ff775623 test/base/interactor.py --- a/test/base/interactor.py +++ b/test/base/interactor.py @@ -461,13 +461,16 @@ def post_request( url, data, files={} ): return __multipart_request( url, data, files, verb="POST" ) - def put_request( url, data, files={} ): - return __multipart_request( url, data, files, verb="PUT" ) + def put_request( url ): + return __urllib_request( url, 'PUT' ) def delete_request( url ): + return __urllib_request( url, 'DELETE' ) + + def __urllib_request( url, verb ): opener = urllib2.build_opener(urllib2.HTTPHandler) request = urllib2.Request(url) - request.get_method = lambda: 'DELETE' + request.get_method = lambda: verb try: response = opener.open(request) return RequestsLikeResponse( response.read(), status_code=response.getcode() ) 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.
participants (1)
-
commits-noreply@bitbucket.org