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
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)
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)
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)