auto repr

This commit is contained in:
Will McGugan 2021-06-18 20:24:05 +01:00
parent 41cc6a6ff2
commit 3281af6f3b
15 changed files with 308 additions and 100 deletions

View file

@ -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: