linked path in logging

This commit is contained in:
Will McGugan 2020-06-14 14:51:19 +01:00
parent ef80460f7f
commit 414acde773
7 changed files with 22 additions and 5 deletions

View file

@ -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