mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
black reformat
This commit is contained in:
parent
0fae28ca90
commit
eb49f84376
1 changed files with 6 additions and 2 deletions
|
@ -104,6 +104,7 @@ def test_get_number_styles():
|
|||
Style.parse("not dim on #272822"),
|
||||
)
|
||||
|
||||
|
||||
def test_get_style_for_token():
|
||||
# from pygments.style import Style as PygmentsStyle
|
||||
# pygments_style = PygmentsStyle()
|
||||
|
@ -124,9 +125,11 @@ def test_get_style_for_token():
|
|||
)
|
||||
assert syntax._get_line_numbers_color() == Color.default()
|
||||
|
||||
|
||||
def test_option_no_wrap():
|
||||
|
||||
from rich.console import Console
|
||||
|
||||
console = Console
|
||||
|
||||
syntax = Syntax(
|
||||
|
@ -136,9 +139,9 @@ def test_option_no_wrap():
|
|||
line_range=(2, 10),
|
||||
code_width=60,
|
||||
word_wrap=False,
|
||||
background_color="red"
|
||||
background_color="red",
|
||||
)
|
||||
|
||||
|
||||
rendered_syntax = render(syntax, True)
|
||||
# print(repr(rendered_syntax))
|
||||
|
||||
|
@ -147,6 +150,7 @@ def test_option_no_wrap():
|
|||
|
||||
assert rendered_syntax == expected
|
||||
|
||||
|
||||
def test_ansi_theme():
|
||||
style = Style(color="red")
|
||||
theme = ANSISyntaxTheme({("foo", "bar"): style})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue