Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_align_left
Function
test_align_left
tests/test_align.py:35–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
33
34
35
def
test_align_left():
36
console = Console(file=io.StringIO(), width=10)
37
console.print(Align(
"foo"
,
"left"
))
38
assert console.file.getvalue() ==
"foo \n"
39
40
41
def
test_align_center():
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