From 6b6c3ac498fb7a25413e13c7b95aaff5a8b8d98f Mon Sep 17 00:00:00 2001 From: John Chilton Date: Sat, 27 Dec 2014 23:46:22 -0500 Subject: [PATCH] Fix remaining tool shed test cases for new escaped values. I think in this case the values on the page are correct now - but the test framework needs to be updated to handle the escaped value. --- test/tool_shed/base/twilltestcase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tool_shed/base/twilltestcase.py b/test/tool_shed/base/twilltestcase.py index 3d49066031a..9138212692d 100644 --- a/test/tool_shed/base/twilltestcase.py +++ b/test/tool_shed/base/twilltestcase.py @@ -430,6 +430,8 @@ class ShedTwillTestCase( TwillTestCase ): url = '/admin_toolshed/manage_repository?id=%s' % self.security.encode_id( installed_repository.id ) self.visit_galaxy_url( url ) strings_displayed.append( str( installed_repository.installed_changeset_revision ) ) + # Every place Galaxy's XXXX tool appears in attribute - need to quote. + strings_displayed = map( lambda x: x.replace("'", "'"), strings_displayed ) self.check_for_strings( strings_displayed, strings_not_displayed ) def display_installed_workflow_image( self, repository, workflow_name, strings_displayed=[], strings_not_displayed=[] ):