• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python test_db_util.get_installed_repository_by_name_owner函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中tool_shed.base.test_db_util.get_installed_repository_by_name_owner函数的典型用法代码示例。如果您正苦于以下问题:Python get_installed_repository_by_name_owner函数的具体用法?Python get_installed_repository_by_name_owner怎么用?Python get_installed_repository_by_name_owner使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_installed_repository_by_name_owner函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_0025_install_column_repository

 def test_0025_install_column_repository( self ):
     '''Install column maker with repository dependencies into column_maker tool panel section.'''
     self.install_repository( column_repository_name, 
                              common.test_user_1_name, 
                              category_name,
                              install_repository_dependencies=True,
                              new_tool_panel_section='column_maker',
                              strings_displayed=[ 'install_repository_dependencies' ] )
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                        common.test_user_1_name )
     browse_strings_displayed = [ 'convert_chars_0080',
                                  'Convert delimiters',
                                  self.url.replace( 'http://', '' ), 
                                  installed_convert_repository.installed_changeset_revision,
                                  'column_maker_0080',
                                  'Add column',
                                  installed_column_repository.installed_changeset_revision ]
     strings_displayed = [ 'column_maker_0080',
                           'Add column',
                           self.url.replace( 'http://', '' ), 
                           installed_column_repository.installed_changeset_revision,
                           'convert_chars_0080',
                           installed_convert_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_galaxy_browse_repositories_page( strings_displayed=browse_strings_displayed )
     self.display_installed_repository_manage_page( installed_column_repository, 
                                                    strings_displayed=strings_displayed )
开发者ID:knowingchaos,项目名称:galaxy,代码行数:29,代码来源:test_1080_advanced_circular_dependency_installation.py


示例2: test_0080_reinstall_convert_repository

 def test_0080_reinstall_convert_repository( self ):
     '''Reinstall convert_chars with repository dependencies, verify that this installs both convert_chars and column_maker.'''
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                         common.test_user_1_name )
     self.reinstall_repository( installed_convert_repository, 
                                install_repository_dependencies=True, 
                                no_changes=False, 
                                new_tool_panel_section='convert_maker' )
     strings_displayed = [ 'column_maker_0080',
                           'Add column',
                           self.url.replace( 'http://', '' ), 
                           installed_column_repository.installed_changeset_revision,
                           'convert_chars_0080',
                           installed_convert_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_installed_repository_manage_page( installed_column_repository, 
                                                    strings_displayed=strings_displayed )
     strings_displayed = [ 'convert_chars_0080',
                           'Convert delimiters',
                           self.url.replace( 'http://', '' ), 
                           installed_convert_repository.installed_changeset_revision,
                           'column_maker_0080',
                           installed_column_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_installed_repository_manage_page( installed_convert_repository, 
                                                    strings_displayed=strings_displayed )
开发者ID:knowingchaos,项目名称:galaxy,代码行数:28,代码来源:test_1080_advanced_circular_dependency_installation.py


示例3: test_0080_reinstall_convert_repository

 def test_0080_reinstall_convert_repository( self ):
     '''Reinstall convert_chars with repository dependencies, verify that this installs both convert_chars and column_maker.'''
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                         common.test_user_1_name )
     self.reinstall_repository( installed_convert_repository, 
                                install_repository_dependencies=True, 
                                no_changes=False, 
                                new_tool_panel_section='convert_maker' )
     strings_displayed = [ installed_column_repository.name,
                           installed_column_repository.description,
                           installed_column_repository.tool_shed, 
                           installed_column_repository.installed_changeset_revision,
                           installed_convert_repository.name,
                           installed_convert_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_installed_repository_manage_page( installed_column_repository, 
                                                    strings_displayed=strings_displayed )
     strings_displayed = [ installed_convert_repository.name,
                           installed_convert_repository.description,
                           installed_convert_repository.tool_shed, 
                           installed_convert_repository.installed_changeset_revision,
                           installed_column_repository.name,
                           installed_column_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_installed_repository_manage_page( installed_convert_repository, 
                                                    strings_displayed=strings_displayed )
开发者ID:cidvbi,项目名称:PathogenPortal,代码行数:28,代码来源:test_1080_advanced_circular_dependency_installation.py


示例4: test_0020_install_convert_repository

 def test_0020_install_convert_repository( self ):
     '''Install convert_chars without repository dependencies into convert_chars tool panel section.'''
     self.galaxy_logout()
     self.galaxy_login( email=common.admin_email, username=common.admin_username )
     self.install_repository( convert_repository_name, 
                              common.test_user_1_name, 
                              category_name, 
                              install_tool_dependencies=False,
                              install_repository_dependencies=False,
                              new_tool_panel_section='convert_chars' )
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                        common.test_user_1_name )
     browse_strings_displayed = [ 'convert_chars_0080',
                                  'Convert delimiters',
                                  self.url.replace( 'http://', '' ), 
                                  installed_convert_repository.installed_changeset_revision ]
     strings_displayed = [ 'convert_chars_0080',
                           'Convert delimiters',
                           self.url.replace( 'http://', '' ), 
                           installed_convert_repository.installed_changeset_revision,
                           'column_maker_0080',
                           installed_column_repository.installed_changeset_revision,
                           'Missing repository dependencies' ]
     self.display_galaxy_browse_repositories_page( strings_displayed=browse_strings_displayed )
     self.display_installed_repository_manage_page( installed_convert_repository, 
                                                    strings_displayed=strings_displayed )
开发者ID:knowingchaos,项目名称:galaxy,代码行数:28,代码来源:test_1080_advanced_circular_dependency_installation.py


示例5: test_0065_reinstall_column_repository

 def test_0065_reinstall_column_repository( self ):
     '''Reinstall column_maker without repository dependencies, verify both convert_chars and column_maker are installed.'''
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                         common.test_user_1_name )
     self.reinstall_repository( installed_column_repository, install_repository_dependencies=False )
     strings_displayed = [ installed_column_repository.name,
                           installed_column_repository.description,
                           installed_column_repository.tool_shed, 
                           installed_column_repository.installed_changeset_revision,
                           installed_convert_repository.name,
                           installed_convert_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_installed_repository_manage_page( installed_column_repository, 
                                                    strings_displayed=strings_displayed )
     strings_displayed = [ installed_convert_repository.name,
                           installed_convert_repository.description,
                           installed_convert_repository.tool_shed, 
                           installed_convert_repository.installed_changeset_revision,
                           installed_column_repository.name,
                           installed_column_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_installed_repository_manage_page( installed_convert_repository, 
                                                    strings_displayed=strings_displayed )
开发者ID:cidvbi,项目名称:PathogenPortal,代码行数:25,代码来源:test_1080_advanced_circular_dependency_installation.py


示例6: test_0055_reactivate_convert_repository

 def test_0055_reactivate_convert_repository( self ):
     '''Activate convert_chars. Both convert_chars and column_maker should now show as installed.'''
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                         common.test_user_1_name )
     self.reactivate_repository( installed_convert_repository )
     strings_displayed = [ installed_column_repository.name,
                           installed_column_repository.description,
                           installed_column_repository.tool_shed, 
                           installed_column_repository.installed_changeset_revision,
                           installed_convert_repository.name,
                           installed_convert_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_installed_repository_manage_page( installed_column_repository, 
                                                    strings_displayed=strings_displayed )
     strings_displayed = [ installed_convert_repository.name,
                           installed_convert_repository.description,
                           installed_convert_repository.tool_shed, 
                           installed_convert_repository.installed_changeset_revision,
                           installed_column_repository.name,
                           installed_column_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_installed_repository_manage_page( installed_convert_repository, 
                                                    strings_displayed=strings_displayed )
开发者ID:cidvbi,项目名称:PathogenPortal,代码行数:25,代码来源:test_1080_advanced_circular_dependency_installation.py


示例7: test_0075_install_freebayes_repository

 def test_0075_install_freebayes_repository( self ):
     '''Install freebayes with repository dependencies. This should also automatically reactivate emboss_datatypes and reinstall emboss_5.'''
     original_datatypes = self.get_datatypes_count()
     strings_displayed = [ 'Handle', 'tool dependencies', 'freebayes', '0.9.4_9696d0ce8a9', 'samtools', '0.1.18' ]
     self.install_repository( freebayes_repository_name, 
                              common.test_user_1_name, 
                              category_name, 
                              strings_displayed=strings_displayed,
                              install_tool_dependencies=False, 
                              install_repository_dependencies=True, 
                              new_tool_panel_section='freebayes' )
     assert original_datatypes < self.get_datatypes_count(), 'Installing a repository that depends on emboss_datatypes did not add datatypes.'
     emboss_repository = test_db_util.get_installed_repository_by_name_owner( emboss_repository_name, common.test_user_1_name )
     datatypes_repository = test_db_util.get_installed_repository_by_name_owner( emboss_datatypes_repository_name, common.test_user_1_name )
     strings_displayed = [ 'emboss_0050', 
                           'emboss_datatypes_0050', 
                           emboss_repository.installed_changeset_revision, 
                           datatypes_repository.installed_changeset_revision ]
     self.display_galaxy_browse_repositories_page( strings_displayed=strings_displayed )
     # Installing freebayes should automatically reinstall emboss and reactivate emboss_datatypes.
     # Now column_maker, convert_chars, emboss, emboss_datatypes, freebayes, and bismark should be installed.
     installed_repositories = [ ( column_repository_name, common.test_user_1_name ), 
                                ( emboss_datatypes_repository_name, common.test_user_1_name ), 
                                ( emboss_repository_name, common.test_user_1_name ), 
                                ( freebayes_repository_name, common.test_user_1_name ),
                                ( convert_repository_name, common.test_user_1_name ), 
                                ( bismark_repository_name, common.test_user_1_name ) ]
     strings_displayed = [ 'emboss_0050', 'emboss_datatypes_0050', 'column_maker_0050', 'convert_chars_0050', 'bismark_0050', 'freebayes_0050' ]
     strings_not_displayed = [ 'filtering_0050' ]
     self.display_galaxy_browse_repositories_page( strings_displayed=strings_displayed, strings_not_displayed=strings_not_displayed )
     self.verify_installed_repositories( installed_repositories )
开发者ID:knowingchaos,项目名称:galaxy,代码行数:31,代码来源:test_1050_circular_dependencies_4_levels.py


示例8: test_0055_reactivate_convert_repository

 def test_0055_reactivate_convert_repository( self ):
     '''Activate convert_chars. Both convert_chars and column_maker should now show as installed.'''
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                         common.test_user_1_name )
     self.reactivate_repository( installed_convert_repository )
     strings_displayed = [ 'column_maker_0080',
                           'Add column',
                           self.url.replace( 'http://', '' ), 
                           installed_column_repository.installed_changeset_revision,
                           'convert_chars_0080',
                           installed_convert_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_installed_repository_manage_page( installed_column_repository, 
                                                    strings_displayed=strings_displayed )
     strings_displayed = [ 'convert_chars_0080',
                           'Convert delimiters',
                           self.url.replace( 'http://', '' ), 
                           installed_convert_repository.installed_changeset_revision,
                           'column_maker_0080',
                           installed_column_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_installed_repository_manage_page( installed_convert_repository, 
                                                    strings_displayed=strings_displayed )
开发者ID:knowingchaos,项目名称:galaxy,代码行数:25,代码来源:test_1080_advanced_circular_dependency_installation.py


示例9: test_0020_install_repositories

 def test_0020_install_repositories( self ):
     '''Install column_maker into column_maker tool panel section and install repository dependencies.'''
     self.galaxy_logout()
     self.galaxy_login( email=common.admin_email, username=common.admin_username )
     self.install_repository( column_repository_name, 
                              common.test_user_1_name, 
                              category_name, 
                              install_tool_dependencies=False,
                              install_repository_dependencies=True,
                              new_tool_panel_section='column_maker',
                              strings_displayed=[ 'install_repository_dependencies' ] )
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                         common.test_user_1_name )
     browse_strings_displayed = [ installed_convert_repository.name,
                                  installed_convert_repository.description,
                                  installed_convert_repository.tool_shed, 
                                  installed_convert_repository.installed_changeset_revision,
                                  installed_column_repository.name,
                                  installed_column_repository.description,
                                  installed_column_repository.installed_changeset_revision ]
     strings_displayed = [ installed_convert_repository.name,
                           installed_convert_repository.description,
                           installed_convert_repository.tool_shed, 
                           installed_convert_repository.installed_changeset_revision,
                           installed_column_repository.name,
                           installed_column_repository.installed_changeset_revision,
                           'Installed repository dependencies' ]
     self.display_galaxy_browse_repositories_page( strings_displayed=browse_strings_displayed )
     self.display_installed_repository_manage_page( installed_convert_repository, 
                                                    strings_displayed=strings_displayed )
开发者ID:cidvbi,项目名称:PathogenPortal,代码行数:32,代码来源:test_1085_repository_dependency_handling.py


示例10: test_0040_uninstall_all_repositories

 def test_0040_uninstall_all_repositories( self ):
     '''Uninstall convert_chars_0160, column_maker_0160, and filtering_0160.'''
     filter_repository = test_db_util.get_installed_repository_by_name_owner( filter_repository_name, common.test_user_1_name )
     column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, common.test_user_1_name )
     convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, common.test_user_1_name )
     self.uninstall_repository( filter_repository, remove_from_disk=True )
     self.uninstall_repository( column_repository, remove_from_disk=True )
     self.uninstall_repository( convert_repository, remove_from_disk=True )
开发者ID:knowingchaos,项目名称:galaxy,代码行数:8,代码来源:test_1160_circular_prior_installation_required.py


示例11: test_0050_verify_reinstallation_order

 def test_0050_verify_reinstallation_order( self ):
     '''Verify that convert_chars_0160 and column_maker_0160 were reinstalled before filtering_0160.'''
     filter_repository = test_db_util.get_installed_repository_by_name_owner( filter_repository_name, common.test_user_1_name )
     column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, common.test_user_1_name )
     convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, common.test_user_1_name )
     # Filtering was selected for reinstallation, so convert chars and column maker should have been installed first.
     assert filter_repository.update_time > convert_repository.update_time, 'Error: convert_chars_0160 shows a later update time than filtering_0160'
     assert filter_repository.update_time > column_repository.update_time, 'Error: column_maker_0160 shows a later update time than filtering_0160'
开发者ID:knowingchaos,项目名称:galaxy,代码行数:8,代码来源:test_1160_circular_prior_installation_required.py


示例12: test_0045_uninstall_freebayes_repository

 def test_0045_uninstall_freebayes_repository( self ):
     '''Uninstall freebayes, verify tool panel section and missing repository dependency.'''
     installed_freebayes_repository = test_db_util.get_installed_repository_by_name_owner( freebayes_repository_name, common.test_user_1_name )
     installed_filtering_repository = test_db_util.get_installed_repository_by_name_owner( filtering_repository_name, common.test_user_1_name )
     self.uninstall_repository( installed_freebayes_repository, remove_from_disk=True )
     test_db_util.ga_refresh( installed_freebayes_repository )
     self.check_galaxy_repository_tool_panel_section( installed_freebayes_repository, 'freebayes' )
     strings_displayed = [ 'Missing repository', 'freebayes', 'filtering_0040', 'user1', "Galaxy's filtering tool for test 0040" ]
     self.display_installed_repository_manage_page( installed_filtering_repository, strings_displayed=strings_displayed )
     self.check_galaxy_repository_db_status( 'freebayes_0040', 
                                             'user1', 
                                             'Uninstalled' )
开发者ID:knowingchaos,项目名称:galaxy,代码行数:12,代码来源:test_1040_install_repository_basic_circular_dependencies.py


示例13: test_0045_uninstall_and_verify_tool_panel_sections

 def test_0045_uninstall_and_verify_tool_panel_sections( self ):
     '''uninstall both and verify tool panel sections'''
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                         common.test_user_1_name )
     self.uninstall_repository( installed_column_repository, remove_from_disk=True )
     self.uninstall_repository( installed_convert_repository, remove_from_disk=True )
     test_db_util.ga_refresh( installed_convert_repository )
     test_db_util.ga_refresh( installed_column_repository )
     self.check_galaxy_repository_tool_panel_section( installed_column_repository, 'new_column_maker' )
     self.check_galaxy_repository_tool_panel_section( installed_convert_repository, 'new_convert_chars' )
开发者ID:cidvbi,项目名称:PathogenPortal,代码行数:12,代码来源:test_1085_repository_dependency_handling.py


示例14: test_0040_uninstall_filtering_repository

 def test_0040_uninstall_filtering_repository( self ):
     '''Uninstall filtering, verify tool panel section.'''
     installed_filtering_repository = test_db_util.get_installed_repository_by_name_owner( filtering_repository_name, common.test_user_1_name )
     installed_freebayes_repository = test_db_util.get_installed_repository_by_name_owner( freebayes_repository_name, common.test_user_1_name )
     self.uninstall_repository( installed_filtering_repository, remove_from_disk=True )
     test_db_util.ga_refresh( installed_filtering_repository )
     self.check_galaxy_repository_tool_panel_section( installed_filtering_repository, '' )
     strings_displayed = [ 'Missing repository', 'filtering' ]
     self.display_installed_repository_manage_page( installed_freebayes_repository, strings_displayed=strings_displayed )
     self.check_galaxy_repository_db_status( filtering_repository_name, 
                                             common.test_user_1_name, 
                                             'Uninstalled' )
开发者ID:cidvbi,项目名称:PathogenPortal,代码行数:12,代码来源:test_1040_install_repository_basic_circular_dependencies.py


示例15: test_0085_uninstall_all_repositories

 def test_0085_uninstall_all_repositories( self ):
     '''Uninstall convert_chars and column_maker to verify that they are in the right tool panel sections.'''
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                         common.test_user_1_name )
     self.uninstall_repository( installed_column_repository, remove_from_disk=True )
     self.uninstall_repository( installed_convert_repository, remove_from_disk=True )
     test_db_util.ga_refresh( installed_column_repository )
     test_db_util.ga_refresh( installed_convert_repository )
     self.check_galaxy_repository_tool_panel_section( installed_column_repository, 'convert_maker' )
     self.check_galaxy_repository_tool_panel_section( installed_convert_repository, 'convert_maker' )
开发者ID:knowingchaos,项目名称:galaxy,代码行数:12,代码来源:test_1080_advanced_circular_dependency_installation.py


示例16: test_0045_deactivate_convert_repository

 def test_0045_deactivate_convert_repository( self ):
     '''Deactivate convert_chars, verify that both convert_chars and column_maker are deactivated.'''
     installed_convert_repository = test_db_util.get_installed_repository_by_name_owner( convert_repository_name, 
                                                                                         common.test_user_1_name )
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                         common.test_user_1_name )
     self.uninstall_repository( installed_convert_repository, remove_from_disk=False )
     strings_not_displayed = [ 'column_maker_0080',
                               installed_column_repository.installed_changeset_revision,
                               'convert_chars_0080',
                               installed_convert_repository.installed_changeset_revision ]
     self.display_galaxy_browse_repositories_page( strings_not_displayed=strings_not_displayed )
开发者ID:knowingchaos,项目名称:galaxy,代码行数:12,代码来源:test_1080_advanced_circular_dependency_installation.py


示例17: test_0030_verify_installation_order

 def test_0030_verify_installation_order( self ):
     '''Verify that the numpy repository was installed before the matplotlib repository.'''
     '''
     This is step 5 - Verify that the prior_installation_required attribute resulted in package_numpy_1_7_0170 being installed first.
     In the previous step, package_matplotlib_1_2_0170 was selected for installation, but package_numpy_1_7_0170 had the 
     prior_installation_required attribute set. Confirm that this resulted in package_numpy_1_7_0170 being installed before 
     package_matplotlib_1_2_0170.
     '''
     matplotlib_repository = test_db_util.get_installed_repository_by_name_owner( matplotlib_repository_name, common.test_user_1_name )
     numpy_repository = test_db_util.get_installed_repository_by_name_owner( numpy_repository_name, common.test_user_1_name )
     assert matplotlib_repository.update_time > numpy_repository.update_time, \
         'Error: package_numpy_1_7_0170 shows a later update time than package_matplotlib_1_2_0170'
     
开发者ID:knowingchaos,项目名称:galaxy,代码行数:12,代码来源:test_1170_complex_prior_installation_required.py


示例18: test_0055_verify_complex_tool_dependency

 def test_0055_verify_complex_tool_dependency( self ):
     '''Verify that the generated env.sh contains the right data.'''
     base_repository = test_db_util.get_installed_repository_by_name_owner( bwa_base_repository_name, common.test_user_1_name )
     tool_repository = test_db_util.get_installed_repository_by_name_owner( bwa_package_repository_name, common.test_user_1_name )
     env_sh_path = self.get_env_sh_path( tool_dependency_name='bwa', 
                                         tool_dependency_version='0.5.9', 
                                         repository=base_repository )
     assert os.path.exists( env_sh_path ), 'env.sh was not generated in %s for this dependency.' % env_sh_path
     contents = file( env_sh_path, 'r' ).read()
     if tool_repository.installed_changeset_revision not in contents:
         raise AssertionError( 'Installed changeset revision %s not found in env.sh.\nContents of env.sh: %s' % \
                               ( tool_repository.installed_changeset_revision, contents ) )
     if 'package_bwa_0_5_9_0100' not in contents:
         raise AssertionError( 'Repository name package_bwa_0_5_9_0100 not found in env.sh.\nContents of env.sh: %s' % contents )
开发者ID:knowingchaos,项目名称:galaxy,代码行数:14,代码来源:test_1100_install_repository_with_complex_dependencies.py


示例19: test_0055_verify_complex_tool_dependency

 def test_0055_verify_complex_tool_dependency( self ):
     '''Verify that the generated env.sh contains the right data.'''
     base_repository = test_db_util.get_installed_repository_by_name_owner( bwa_base_repository_name, common.test_user_1_name )
     tool_repository = test_db_util.get_installed_repository_by_name_owner( bwa_tool_repository_name, common.test_user_1_name )
     env_sh_path = os.path.join( self.galaxy_tool_dependency_dir, 
                                 'bwa', 
                                 '0.5.9', 
                                 base_repository.owner, 
                                 base_repository.name, 
                                 base_repository.installed_changeset_revision, 
                                 'env.sh' )
     assert os.path.exists( env_sh_path ), 'env.sh was not generated in %s for this dependency.' % env_sh_path
     contents = file( env_sh_path, 'r' ).read()
     if tool_repository.installed_changeset_revision not in contents or tool_repository.name not in contents: 
         raise AssertionError( 'The env.sh file was not correctly generated. Contents: %s' % contents )
开发者ID:cidvbi,项目名称:PathogenPortal,代码行数:15,代码来源:test_1100_install_repository_with_complex_dependencies.py


示例20: test_0025_uninstall_column_repository

 def test_0025_uninstall_column_repository( self ):
     '''uninstall column_maker, verify same section'''
     installed_column_repository = test_db_util.get_installed_repository_by_name_owner( column_repository_name, 
                                                                                         common.test_user_1_name )
     self.uninstall_repository( installed_column_repository, remove_from_disk=True )
     test_db_util.ga_refresh( installed_column_repository )
     self.check_galaxy_repository_tool_panel_section( installed_column_repository, 'column_maker' )
开发者ID:cidvbi,项目名称:PathogenPortal,代码行数:7,代码来源:test_1085_repository_dependency_handling.py



注:本文中的tool_shed.base.test_db_util.get_installed_repository_by_name_owner函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python test_db_util.get_private_role函数代码示例发布时间:2022-05-27
下一篇:
Python tones.beep函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap