mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 01:58:24 +00:00
add stress test
This commit is contained in:
parent
ec8cb56ccf
commit
b98ff8fe3c
1 changed files with 12 additions and 0 deletions
12
tools/stress_test_pretty.py
Normal file
12
tools/stress_test_pretty.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from rich.console import Console
|
||||
from rich.pretty import Pretty
|
||||
|
||||
DATA = {
|
||||
"foo": [1, 2, 3, (1, 2, 3), {4, 5, 6, (7, 8, 9)}, "Hello, World"],
|
||||
"bar": [None, False, True],
|
||||
}
|
||||
|
||||
console = Console()
|
||||
for w in range(100):
|
||||
console.print(DATA, width=w)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue