From b98ff8fe3c991608f0fe3e4cd84b2661e13e6744 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 8 Aug 2020 18:51:34 +0100 Subject: [PATCH] add stress test --- tools/stress_test_pretty.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tools/stress_test_pretty.py diff --git a/tools/stress_test_pretty.py b/tools/stress_test_pretty.py new file mode 100644 index 000000000..144a3f34c --- /dev/null +++ b/tools/stress_test_pretty.py @@ -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) +