commit/galaxy-central: inithello: Functional test to verify correct display of tool migration stages.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/6189b2690b46/ changeset: 6189b2690b46 user: inithello date: 2013-01-24 15:29:29 summary: Functional test to verify correct display of tool migration stages. affected #: 2 files diff -r aa8298344ed5b5f7c209a4341999815d25a2e305 -r 6189b2690b4688c4e35066bf09aaf95e1c272d5e test/tool_shed/base/twilltestcase.py --- a/test/tool_shed/base/twilltestcase.py +++ b/test/tool_shed/base/twilltestcase.py @@ -667,6 +667,10 @@ ( self.security.encode_id( repository.id ), tool_xml_path, changeset_revision ) self.visit_url( url ) self.check_for_strings( strings_displayed, strings_not_displayed ) + def load_galaxy_tool_migrations_page( self, strings_displayed=[], strings_not_displayed=[] ): + url = '/admin/review_tool_migration_stages' + self.visit_galaxy_url( url ) + self.check_for_strings( strings_displayed, strings_not_displayed ) def load_workflow_image_in_tool_shed( self, repository, workflow_name, changeset_revision=None, strings_displayed=[], strings_not_displayed=[] ): if not changeset_revision: changeset_revision = self.get_repository_tip( repository ) diff -r aa8298344ed5b5f7c209a4341999815d25a2e305 -r 6189b2690b4688c4e35066bf09aaf95e1c272d5e test/tool_shed/functional/test_1400_review_migration_stages.py --- /dev/null +++ b/test/tool_shed/functional/test_1400_review_migration_stages.py @@ -0,0 +1,30 @@ +from tool_shed.base.twilltestcase import ShedTwillTestCase, common, os +import tool_shed.base.test_db_util as test_db_util + +class TestToolMigrationStages( ShedTwillTestCase ): + '''Verify that the migration stages display correctly.''' + def test_0000_initiate_users( self ): + """Create necessary user accounts and login as an admin user.""" + self.logout() + self.login( email=common.admin_email, username=common.admin_username ) + admin_user = test_db_util.get_user( common.admin_email ) + assert admin_user is not None, 'Problem retrieving user with email %s from the database' % common.admin_email + admin_user_private_role = test_db_util.get_private_role( admin_user ) + self.galaxy_logout() + self.galaxy_login( email=common.admin_email, username=common.admin_username ) + admin_user = test_db_util.get_user( common.admin_email ) + assert admin_user is not None, 'Problem retrieving user with email %s from the database' % common.admin_email + admin_user_private_role = test_db_util.get_private_role( admin_user ) + def test_0005_load_migration_stages_page( self ): + '''Load the migration page and check for the appropriate migration stages.''' + stages = [ + 'emboss_5', 'emboss_datatypes', 'emboss', '5.0.0', '0002_tools.sh', + 'freebayes', '0.9.4_a46483351fd0196637614121868fb5c386612b55', 'samtools', '0.1.18', 'FreeBayes requires g++', + 'ncurses', 'zlib', '0003_tools.sh', + 'ncbi_blast_plus', 'blast_datatypes', 'blast+', '2.2.26+', 'blast.ncbi.nlm.nih.gov', 'NCBI BLAST+ tools', '0004_tools.sh', + 'bwa_wrappers', '0.5.9', 'zlib and libpthread', 'Map with BWA for Illumina', '0005_tools.sh', + 'picard', '1.56.0', 'FASTQ to BAM', '0006_tools.sh', + 'lastz', '1.02.00', 'bowtie', '0.12.7', 'Map with Bowtie for Illumina', 'Bowtie requires libpthread', '0007_tools.sh' + ] + self.load_galaxy_tool_migrations_page( strings_displayed=stages ) + 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)
-
Bitbucket