MCPcopy
hub / github.com/Textualize/rich / test_init_append_column

Function test_init_append_column

tests/test_table.py:105–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103
104
105def test_init_append_column():
106 header_names = ["header1", "header2", "header3"]
107 test_columns = [
108 Column(_index=index, header=header) for index, header in enumerate(header_names)
109 ]
110
111 # Test appending of strings for header names
112 assert Table(*header_names).columns == test_columns
113 # Test directly passing a Table Column objects
114 assert Table(*test_columns).columns == test_columns
115
116
117def test_rich_measure():

Callers

nothing calls this directly

Calls 2

ColumnClass · 0.90
TableClass · 0.90

Tested by

no test coverage detected