mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
auto repr
This commit is contained in:
parent
41cc6a6ff2
commit
3281af6f3b
15 changed files with 308 additions and 100 deletions
|
@ -14,11 +14,11 @@ import pytest
|
|||
|
||||
|
||||
def test_str() -> None:
|
||||
assert str(Color.parse("red")) == "<color 'red' 1 (standard)>"
|
||||
assert str(Color.parse("red")) == "Color('red', ColorType.STANDARD, number=1)"
|
||||
|
||||
|
||||
def test_repr() -> None:
|
||||
assert repr(Color.parse("red")) == "<color 'red' 1 (standard)>"
|
||||
assert repr(Color.parse("red")) == "Color('red', ColorType.STANDARD, number=1)"
|
||||
|
||||
|
||||
def test_rich() -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue