mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
test
This commit is contained in:
parent
2e8f5dee96
commit
7a5f5a32cf
1 changed files with 2 additions and 2 deletions
|
@ -15,10 +15,10 @@ def test_rich_print():
|
|||
backup_file = console.file
|
||||
try:
|
||||
console.file = output
|
||||
rich.print("foo")
|
||||
rich.print("foo", "bar")
|
||||
rich.print("foo\n")
|
||||
rich.print("foo\n\n")
|
||||
assert output.getvalue() == "foo\nfoo\n\nfoo\n\n\n"
|
||||
assert output.getvalue() == "foo bar\nfoo\n\nfoo\n\n\n"
|
||||
finally:
|
||||
console.file = backup_file
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue