本文整理汇总了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函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 )
示例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 )
示例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 )
示例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 )
示例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 )
示例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 )
示例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 )
示例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'
示例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' )
示例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' )