mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
linked path in logging
This commit is contained in:
parent
ef80460f7f
commit
414acde773
7 changed files with 22 additions and 5 deletions
|
@ -21,7 +21,8 @@ def make_log():
|
|||
|
||||
def test_log():
|
||||
render = make_log()
|
||||
expected = "\x1b[2;36m[DATE]\x1b[0m\x1b[2;36m \x1b[0m\x1b[32mDEBUG\x1b[0m foo \x1b[2mtest_logging.py:17\x1b[0m\n"
|
||||
print(repr(render))
|
||||
expected = "\x1b[2;36m[DATE]\x1b[0m\x1b[2;36m \x1b[0m\x1b[32mDEBUG\x1b[0m foo \x1b]8;id=3292318898;file:///Users/willmcgugan/projects/rich/tests/test_logging.py\x1b\\\x1b[2mtest_logging.py\x1b[0m\x1b]8;;\x1b\\\x1b[2m:17\x1b[0m\n"
|
||||
assert render == expected
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue