commit/galaxy-central: Dave Bouvier: Fill form by name rather than number when uploading files for tool functional tests.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/7978a2884aa7/ Changeset: 7978a2884aa7 User: Dave Bouvier Date: 2013-10-01 16:23:59 Summary: Fill form by name rather than number when uploading files for tool functional tests. Affected #: 1 file diff -r 47f3bec46ced8ee624da7431b79e7d95874c28e2 -r 7978a2884aa79c87650eb5aca1f934969f276fc0 test/base/twilltestcase.py --- a/test/base/twilltestcase.py +++ b/test/base/twilltestcase.py @@ -191,20 +191,20 @@ self.visit_url( "%s/tool_runner?tool_id=upload1" % self.url ) try: self.refresh_form( "file_type", ftype ) #Refresh, to support composite files - tc.fv("1","dbkey", dbkey) + tc.fv( "tool_form", "dbkey", dbkey ) if metadata: for elem in metadata: - tc.fv( "1", "files_metadata|%s" % elem.get( 'name' ), elem.get( 'value' ) ) + tc.fv( "tool_form", "files_metadata|%s" % elem.get( 'name' ), elem.get( 'value' ) ) if composite_data: for i, composite_file in enumerate( composite_data ): filename = self.get_filename( composite_file.get( 'value' ), shed_tool_id=shed_tool_id ) - tc.formfile( "1", "files_%i|file_data" % i, filename ) - tc.fv( "1", "files_%i|space_to_tab" % i, composite_file.get( 'space_to_tab', False ) ) + tc.formfile( "tool_form", "files_%i|file_data" % i, filename ) + tc.fv( "tool_form", "files_%i|space_to_tab" % i, composite_file.get( 'space_to_tab', False ) ) else: filename = self.get_filename( filename, shed_tool_id=shed_tool_id ) - tc.formfile( "1", "file_data", filename ) - tc.fv( "1", "space_to_tab", space_to_tab ) - tc.submit("runtool_btn") + tc.formfile( "tool_form", "file_data", filename ) + tc.fv( "tool_form", "space_to_tab", space_to_tab ) + tc.submit( "runtool_btn" ) self.home() except AssertionError, err: errmsg = "Uploading file resulted in the following exception. Make sure the file (%s) exists. " % filename 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