Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_align_fit
Function
test_align_fit
tests/test_align.py:89–92 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
87
88
89
def
test_align_fit():
90
console = Console(file=io.StringIO(), width=10)
91
console.print(Align(
"foobarbaze"
,
"center"
))
92
assert console.file.getvalue() ==
"foobarbaze\n"
93
94
95
def
test_align_right_style():
Callers
nothing calls this directly
Calls
3
print
Method · 0.95
Console
Class · 0.90
Align
Class · 0.90
Tested by
no test coverage detected