当前位置: 首页>>代码示例>>Python>>正文


Python Dropdown.read方法代码示例

本文整理汇总了Python中widgetastic_patternfly.Dropdown.read方法的典型用法代码示例。如果您正苦于以下问题:Python Dropdown.read方法的具体用法?Python Dropdown.read怎么用?Python Dropdown.read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在widgetastic_patternfly.Dropdown的用法示例。


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

示例1: test_custom_button_text_display

# 需要导入模块: from widgetastic_patternfly import Dropdown [as 别名]
# 或者: from widgetastic_patternfly.Dropdown import read [as 别名]
def test_custom_button_text_display(appliance, context, serv_button_group, service):
    """ Test custom button text display on option

    Polarion:
        assignee: ndhandre
        initialEstimate: 1/6h
        caseimportance: medium
        caseposneg: positive
        testtype: functional
        startsin: 5.9
        casecomponent: CustomButton
        tags: custom_button
        testSteps:
            1. Appliance with Service
            2. Create custom button `Group` or `Button` without display option
            3. Check Group/Button text display or not on UI and SSUI.

    Bugzilla:
        1650066
        1659452
    """

    my_service = MyService(appliance, name=service.name)
    button, group = serv_button_group

    with appliance.context.use(context):
        navigate_to = ssui_nav if context is ViaSSUI else ui_nav
        destinations = (
            ["Details"]
            if (BZ(1650066).blocks and context is ViaSSUI)
            else ["All", "Details"]
        )
        for destination in destinations:
            view = navigate_to(my_service, destination)
            custom_button_group = Dropdown(view, group.text)
            if group.display is True:
                assert "" in custom_button_group.items
            else:
                assert custom_button_group.read() == ""
开发者ID:niyazRedhat,项目名称:integration_tests,代码行数:41,代码来源:test_service_objects.py


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