mirror of
https://github.com/Textualize/rich.git
synced 2025-08-31 15:37:24 +00:00
background style, table width calculation
This commit is contained in:
parent
c98bf070e4
commit
05ce5105b4
14 changed files with 68 additions and 49 deletions
|
@ -20,5 +20,5 @@ def test_rich_cast():
|
|||
def test_rich_cast_container():
|
||||
foo = Foo()
|
||||
console = Console(file=io.StringIO(), legacy_windows=False)
|
||||
console.print(Panel.fit(foo))
|
||||
console.print(Panel.fit(foo, padding=0))
|
||||
assert console.file.getvalue() == "╭───╮\n│Foo│\n╰───╯\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue