commit/galaxy-central: inithello: More compatibility with main tool shed.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/98cd1bcb36f1/ Changeset: 98cd1bcb36f1 User: inithello Date: 2013-04-26 21:01:21 Summary: More compatibility with main tool shed. Affected #: 1 file diff -r b16126d45099c38563e4372b4a7f781d30e44bde -r 98cd1bcb36f129e8fed213687deccd7701ab047a test/install_and_test_tool_shed_repositories/functional_tests.py --- a/test/install_and_test_tool_shed_repositories/functional_tests.py +++ b/test/install_and_test_tool_shed_repositories/functional_tests.py @@ -269,9 +269,11 @@ api_path = [ 'api', 'repository_revisions', metadata_revision_id ] api_url = get_api_url( base=tool_shed_url, parts=api_path ) repository_metadata = json_from_url( api_url ) - if repository_metadata[ 'tool_test_results' ] is None: - return {} - return repository_metadata[ 'tool_test_results' ] + tool_test_results = repository_metadata.get( 'tool_test_results', {} ) + # Compatibility code, remove before next release. + if not tool_test_results: + tool_test_results = repository_metadata.get( 'tool_test_errors', {} ) + return tool_test_results def json_from_url( url ): url_handle = urllib.urlopen( url ) 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