mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
added example
This commit is contained in:
parent
01410131cf
commit
0b3d734d1c
10 changed files with 896 additions and 13 deletions
|
@ -71,6 +71,13 @@ def test_hash():
|
|||
assert isinstance(hash(Style()), int)
|
||||
|
||||
|
||||
def test_bool():
|
||||
assert bool(Style()) is False
|
||||
assert bool(Style(bold=True)) is True
|
||||
assert bool(Style(color="red")) is True
|
||||
assert bool(Style.parse("")) is False
|
||||
|
||||
|
||||
def test_color_property():
|
||||
assert Style(color="red").color == Color("red", ColorType.STANDARD, 1, None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue