Fix Tool Shed test broken with PR #706.

This commit is contained in:
Nicola Soranzo
2015-09-11 19:05:37 +01:00
parent 36809cd6f3
commit 63a715f27c
@@ -112,7 +112,7 @@ class TestToolHelpImages( ShedTwillTestCase ):
src="admin_toolshed/static/images/<id>/count_modes.png"
'''
repository = self.test_db_util.get_installed_repository_by_name_owner( repository_name, common.test_user_1_name )
image_path = 'src="admin_toolshed/static/images/%s/count_modes.png"' % self.security.encode_id( repository.id )
image_path = 'admin_toolshed/static/images/%s/count_modes.png' % self.security.encode_id( repository.id )
# The repository uploaded in this test should only define one tool, which should be the tool that contains a link to an image.
repository_metadata = repository.metadata
tool_id = repository_metadata[ 'tools' ][ 0 ][ 'guid' ]