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

Function test_get_row_style

tests/test_table.py:152–158  ·  tests/test_table.py::test_get_row_style
()

Source from the content-addressed store, hash-verified

150
151
152def test_get_row_style():
153 console = Console()
154 table = Table()
155 table.add_row(class="st">"foo")
156 table.add_row(class="st">"bar", style=class="st">"on red")
157 assert table.get_row_style(console, 0) == Style.parse(class="st">"")
158 assert table.get_row_style(console, 1) == Style.parse(class="st">"on red")
159
160
161def test_vertical_align_top():

Callers

nothing calls this directly

Calls 5

add_rowMethod · 0.95
get_row_styleMethod · 0.95
ConsoleClass · 0.90
TableClass · 0.90
parseMethod · 0.45

Tested by

no test coverage detected