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

Function test_style_stack

tests/test_style.py:181–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179
180
181def test_style_stack():
182 stack = StyleStack(Style(color="red"))
183 repr(stack)
184 assert stack.current == Style(color="red")
185 stack.push(Style(bold=True))
186 assert stack.current == Style(color="red", bold=True)
187 stack.pop()
188 assert stack.current == Style(color="red")
189
190
191def test_pick_first():

Callers

nothing calls this directly

Calls 4

pushMethod · 0.95
popMethod · 0.95
StyleStackClass · 0.90
StyleClass · 0.90

Tested by

no test coverage detected