8000 Validate and fix some failed snapshot tests · Textualize/rich@644e0c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 644e0c0

Browse files
committed
Validate and fix some failed snapshot tests
1 parent 73a9ec0 commit 644e0c0

File tree

7 files changed

+125
-47
lines changed

7 files changed

+125
-47
lines changed

poetry.lock

Lines changed: 51 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rich/default_styles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
"markdown.emph": Style(italic=True), # For commonmark backwards compatibility
143143
"markdown.strong": Style(bold=True),
144144
"markdown.code": Style(bold=True, color="cyan", bgcolor="black"),
145-
"markdown.code_block": Style(dim=True, color="cyan", bgcolor="black"),
145+
"markdown.code_block": Style(color="cyan", bgcolor="black"),
146146
"markdown.block_quote": Style(color="magenta"),
147147
"markdown.list": Style(color="cyan"),
148148
"markdown.item": Style(),

rich/markdown.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,5 +671,7 @@ def __rich_console__(
671671
pydoc.pager(fileio.getvalue())
672672

673673
else:
674-
console = Console(force_terminal=args.force_color, width=args.width)
674+
console = Console(
675+
force_terminal=args.force_color, width=args.width, record=True
676+
)
675677
console.print(markdown)

tests/_card_render.py

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
0