Skip to content

Commit 4b5ac1d

Browse files
author
lilydu
committed
undo suggestion
1 parent e8931ea commit 4b5ac1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/common/tests/test_logging_formatter.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ def test_dict_message_formatting() -> None:
7373
result = formatter.format(record)
7474
result_lines = result.split("\n")
7575

76-
prefix = generate_prefix(logging.INFO, "test")
76+
prefix = (
77+
f"{ANSI.FOREGROUND_CYAN.value}{ANSI.BOLD.value}"
78+
+ f"[INFO] test{ANSI.FOREGROUND_RESET.value}{ANSI.BOLD_RESET.value}"
79+
)
7780
assert result_lines[0].startswith(prefix)
7881
assert '"key": "value"' in result
7982
assert '"nested": {' in result

0 commit comments

Comments
 (0)