mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 01:58:24 +00:00
color parsing
This commit is contained in:
parent
977dbcfebc
commit
1f09278776
9 changed files with 74 additions and 37 deletions
|
@ -40,6 +40,12 @@ def test_render():
|
|||
assert result.spans == [Span(0, 3, "bold")]
|
||||
|
||||
|
||||
def test_render_not_tags():
|
||||
result = render('[1], [1,2,3,4], ["hello"]')
|
||||
assert str(result) == '[1], [1,2,3,4], ["hello"]'
|
||||
assert result.spans == []
|
||||
|
||||
|
||||
def test_render_link():
|
||||
result = render("[link=foo]FOO[/link]")
|
||||
assert str(result) == "FOO"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue