added reconfigure

This commit is contained in:
Will McGugan 2020-12-13 12:23:28 +00:00
parent 04b23b8ac7
commit 12b268d223
6 changed files with 51 additions and 2 deletions

View file

@ -9,6 +9,11 @@ def test_get_console():
assert isinstance(console, Console)
def test_reconfigure_console():
rich.reconfigure(width=100)
assert rich.get_console().width == 100
def test_rich_print():
console = rich.get_console()
output = io.StringIO()