Пример #1
0
def test_table_thead(web_fixture):
    """Table can find its Thead element"""

    table = Table(web_fixture.view)
    thead = table.add_child(Thead(web_fixture.view))

    assert table.thead is thead
Пример #2
0
def table_thead(fixture):
    """Table can find its Thead element"""

    table = Table(fixture.view)
    thead = table.add_child(Thead(fixture.view))

    vassert(table.thead is thead)
Пример #3
0
 def __init__(self, view):
     super().__init__(view)
     table = Table(view, caption_text='All my friends', summary='Summary for screen reader')
     table.with_data(
                     [StaticColumn(Field(label='Row Number'), 'row'),
                      StaticColumn(Field(label='Alpha'), 'alpha')],
                      table_fixture.data
                     )
     self.add_child(table)
Пример #4
0
 def __init__(self, view):
     super(MainWidget, self).__init__(view)
     table = Table(view)
     table.with_data([
         StaticColumn(Field(label='Another Row Number'), 'row_another'),
         StaticColumn(Field(label='Row Number'), 'row'),
         scenario.total_column
     ],
                     table_fixture.data,
                     footer_items=[EmptyStub(total=123)])
     self.add_child(table)