refactor: Consolidate text color decorators and update related properties

This commit is contained in:
sha
2026-01-04 20:49:55 +00:00
parent 3f8b158135
commit 336b030a6b
11 changed files with 136 additions and 280 deletions
+2 -2
View File
@@ -78,9 +78,9 @@ class TestTextDecorators:
assert obj.get_text() == "[bold]Hello[/bold]"
def test_green_decorator(self):
"""Test @text_decorators.green() decorator."""
"""Test @text_decorators.colour(name="green") decorator."""
class TestClass:
@text_decorators.green()
@text_decorators.colour(name="green")
def get_text(self):
return "Success"