mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 01:58:24 +00:00
fix log jusify
This commit is contained in:
parent
9690c1fc05
commit
c391684e8f
4 changed files with 18 additions and 1 deletions
|
@ -45,6 +45,14 @@ def test_log():
|
|||
assert rendered == expected
|
||||
|
||||
|
||||
def test_justify():
|
||||
console = Console(width=20, log_path=False, log_time=False, color_system=None)
|
||||
console.begin_capture()
|
||||
console.log("foo", justify="right")
|
||||
result = console.end_capture()
|
||||
assert result == " foo\n"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
render = render_log()
|
||||
print(render)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue